Comments (1)
https://www.blockcypher.com/dev/ethereum/#transaction-hash-endpoint
total * 10^18= value ETH
fees * 10^18= transaction cost in ETH
Example for https://etherscan.io/tx/0x17bd699f7a7a55debfe9621e019e58692b8e5027d1e2bf1aca22831a255d4fa1
curl -s https://api.blockcypher.com/v1/eth/main/txs/17bd699f7a7a55debfe9621e019e58692b8e5027d1e2bf1aca22831a255d4fa1
{
"block_hash": "1b82e5ec2d64990708b06adc7d565599b99968a1e395d7f49a87f83a5f8bf74e",
"block_height": 13621758,
"block_index": 168,
"hash": "17bd699f7a7a55debfe9621e019e58692b8e5027d1e2bf1aca22831a255d4fa1",
"addresses": [
"19ffa65cf48b8d0cd9081958e69b7a170824955c",
"47e312d99c09ce61a866c83cbbbbed5a4b9d33e7"
],
"total": 100000000000000000,
"fees": 42315901000000000,
"size": 149,
"gas_limit": 500000,
"gas_used": 374477,
"gas_price": 113000000000,
"gas_tip_cap": 113000000000,
"gas_fee_cap": 113000000000,
"confirmed": "2021-11-15T17:55:38Z",
"received": "2021-11-15T15:56:21.405Z",
"ver": 0,
"double_spend": false,
"vin_sz": 1,
"vout_sz": 1,
"internal_txids": [
"798163a0b82862b62ef592a365dd6497385cea80ba58330b0f0b65d90d1a3b9f",
"51c081f44f63e3502bfb26044220ca7147d847c88c543412504e0549c6ff6193",
"0ed8171d845b169cead332d58a27599afc79a674dc5b281eb319ce3551327214",
"2a82e9fe1b0386d71b01dc270922245dddb6b9407b2ad2ae6cc29ea5fa863e30",
"00c7136d67eb702e55a55a3067815e993684e251072ae524bce0959e59a43c98",
"9a88401531e20e4b9796346e3e04148ca2c50d210ef00f3f1da0080b53785df0",
"8bd947e6fff352fcc3efa059999c168e87af5a65321c4a5742918eedf8c5b04e",
"8945a837f0867dd17c2f633179be292ab363c1575886b1cc915c3af949713ea6",
"87df65a5aa5c5c6c9946b9e0b69610852a788e437ed54f77080f65685559a580",
"6565a3a71536238f475c4e3bc961e661f0cca373d991d700a49be6cece0c9a93",
"8ab7d29b3cc8b350966579a55510ae5c47f57f8e43b5fe7611868299e65430cd",
"69af25f428f9718727cde6160afb74a43fd75aae233c2d6ae64ddd0923d7f0f4",
"e4b5e69b9a38e003786defc7c9b697518c4315ed16329c2ed804601c3498e016",
"f9597798cc2b2d6832a3898511c2be37b13497dc6330168ac891de5656a2349d",
"289fb02d2540bfb04c059e0188196ecf45ca7d0cf27fa008ff51da5dca4e9a18",
"ec4116ad97e31e5b59e7e9c978142c048ee4b4121788c48354b0ae51a9ceeab1",
"d9d605a1126eee23b9807704a84e87d99d78fb6cbf4eac1374df0b0e9bc6ae37",
"687c5992128f3790ccaa6ba35e40b670a3817378d22ac66029085433f293e714",
"09f4f5a16469b686cb2f456bdfcd69350e73693090d74c3551efeb113da3c003"
],
"confirmations": 13603,
"confidence": 1,
"inputs": [
{
"sequence": 365,
"addresses": [
"19ffa65cf48b8d0cd9081958e69b7a170824955c"
]
}
],
"outputs": [
{
"value": 100000000000000000,
"script": "efef39a100000000000000000000000000000000000000000000000000000000000000c6",
"addresses": [
"47e312d99c09ce61a866c83cbbbbed5a4b9d33e7"
]
}
]
}
from nft-profit-loss.
Related Issues (20)
- Support NFTs which are bought and sold multiple times HOT 2
- Warning message if ETH/WETH is not used as payment_symbol
- Add gas costs for buy and sell transactions HOT 2
- If sellTransaction is a transfer event with no cost and buyTransaction has a cost, do not treat as a profit loss HOT 1
- Separate table for profits grouped pr collection (ie. contract) HOT 1
- Separate table for holding nfts pr contract HOT 1
- Filter out unicode symbols causing table issues
- Handle case were transaction.timestamp is None HOT 2
- Add ethereum prices for missing days on startup from coinbase api HOT 1
- Csv dump option of nft and transaction data
- Add ENS lookup support (for example use elsewhat.eth instead of 0x19...)
- Transferred token is shown under "Currently holding" HOT 2
- Avoid hardcoding ETH price for break-even calculation
- Include current floor price in currently holding
- Add count to profit pr contract
- Add OpenSea 2.5% cut and collection cut
- all i can see is zeros. no profit loss or price HOT 2
- When minting multiple nfts (ERC721) in one transaction, split buy cost and mint cost between them
- Handling breaking change for cursor pagination in Opensea API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nft-profit-loss.