SlideShare a Scribd company logo
June 19, 2018
Ethereum Block & Transaction Info via Aggregated Views
(API by Block 16)
medium.com/block-16/ethereum-block-transaction-info-via-aggregated-views-api-by-block-16-aa9b175da929
When working with web applications that interface with Ethereum nodes, I’ve always found
that I need more information than is provided by singular JSON-RPC calls. For instance, you
can get the information about the block —but then have to run another call to get information
about a transaction — and yet another call for the transaction receipt. If you are gathering and
organizing this information at scale, it oftentimes requires over 500 HTTP requests and can
take a lot of time (not to mention a burden on Infura). At Block 16 we have created internal
APIs to present this information quickly along with different “views” or organizations of
blockchain information. Today we are making some of these public.
Get All Block Information by Number. Get all block information, uncles, transactions and
receipts by block number. The datastructure is much like what’s returned from normal
eth_getBlockByNumber RPC but includes a list of uncles, transactions, and receipts achieved
from eth_getUncleByBlockNumberAndIndex, eth_getTransactionByHash and
eth_getTransactionReceipt calls respectively. More information can be foundhere, by invoking
the following command in terminal or clicking the link within the command:
curl -X GET https://api.block16.io/v1/block/5000000 
-H 'Accept: application/json'
Get All Current Block Information. Get all block information, uncles, transactions and
receipts for the current block. Internally we track all transactions on the network and perform
various operations — so we tend to run about 1–10 seconds behind the current block.
curl -X GET https://api.block16.io/v1/block/current 
-H 'Accept: application/json'
Subscribe to Current Block via Websocket. Same as the endpoint described above but the
websocket pushes the current block information upon connection and receives updates as
blocks are processed. A sample application can be viewed here with source code available
here.
Get Last 100 TXs by Address. We have an interesting data format for this endpoint that is
informed by availability and database space:
1/2
{
"address": "0000000000000000000000000000000000000008",
"transactionDate": 1528012206000,
"value": "1000000000000000000",
"toAddress": "0000000000000000000000000000000000000008",
"fromAddress": "dfa5d32e82ce9d131ca77f5e260c3d0d68deb61b",
"ethereumContract": "3543638ed4a9006e4840b105944271bcea15605d",
"transactionHash":
"945ab5e688660478b0bb813cc6c2f4c8a17bb1d8bed810634ec203a26e7a74d8",
"blockNumber": 5724039,
"transactionType": "token_transaction",
"fee": "16440820000000000"
}
Notice that all hex prefixes are removed and that there is a “toAddress”, “fromAddress” and an
“address” field. Incoming transactions are found by matching “address” with the “toAddress”
and outgoing by matching “address” with “fromAddress”. The “value” property is the base 10
raw value of the transaction in wei if it was not a token transaction. If it was a token
transaction, the “value” property is the raw token amount without decimals. The “fee” is in base
10 wei. For more information about the structure of the data visit the documentation. Curl
invocation:
curl -X GET
https://api.block16.io/v1/address/0x0000000000000000000000000000000000000001/transactio
ns -H 'Accept: application/json'
Get All Token Contracts Associated with an Address. This endpoint lists all token contract
addresses that an Ethereum address has ever been associated with. As with the previous
endpoint, the “0x” hexadecimal prefix is removed in order to save space in the database.
curl -X GET
https://api.block16.io/v1/address/0x0000000000000000000000000000000000000001/assets -H
'Accept: application/json'
The formal slate documentation can be found at https://docs.block16.io/ . All of the endpoints
have crossorigin headers included so you’ll be able to use them in a webapp, though there is a
30 request per minute limit implemented per IP. If these endpoints become popular we’ll
consider increasing the request per minute limit and scaling/sharding our public databases.
Our goal is to help the ecosystem create more responsive and informative webapps. Any
feedback is greatly appreciated!
2/2

More Related Content

Similar to Block 16 - Ethereum block transaction info via aggregated views API by Block 16

BlockChain for the Banker
BlockChain for the BankerBlockChain for the Banker
BlockChain for the Banker
Bohdan Szymanik
 
Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_li
nikinew1
 
An Introduction to Blockchains
An Introduction to BlockchainsAn Introduction to Blockchains
An Introduction to Blockchains
Dr. Nikolaus Lipusch
 
Blockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentationBlockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentation
Paperchain
 
Blockchain
BlockchainBlockchain
Blockchain
Anil Chaurasiya
 
P5 to blockchain or not to blockchain
P5 to blockchain or not to blockchainP5 to blockchain or not to blockchain
P5 to blockchain or not to blockchain
devid8
 
Blockchain. A Guide For Beginners
Blockchain. A Guide For BeginnersBlockchain. A Guide For Beginners
Blockchain. A Guide For Beginners
ElifTech
 
Uni v2 eth-dai analysis
Uni v2 eth-dai analysisUni v2 eth-dai analysis
Uni v2 eth-dai analysis
JonnyHimalaya
 
Mind My Value: A decentralised infrastructure for fair and trusted IoT data ...
Mind My Value:  A decentralised infrastructure for fair and trusted IoT data ...Mind My Value:  A decentralised infrastructure for fair and trusted IoT data ...
Mind My Value: A decentralised infrastructure for fair and trusted IoT data ...
Paolo Missier
 
Detecting real-time market manipulation in decentralized cryptocurrency excha...
Detecting real-time market manipulation in decentralized cryptocurrency excha...Detecting real-time market manipulation in decentralized cryptocurrency excha...
Detecting real-time market manipulation in decentralized cryptocurrency excha...
DataWorks Summit
 
Blockchain Corporate Style
Blockchain Corporate StyleBlockchain Corporate Style
Blockchain Corporate Style
Narendranath Reddy
 
Final paper blockchain
Final paper blockchain Final paper blockchain
Final paper blockchain VIMANYU SAHU
 
Blockchain Cryptocurrency
Blockchain CryptocurrencyBlockchain Cryptocurrency
Blockchain Cryptocurrency
Integral University
 
Ethereum Mining How To
Ethereum Mining How ToEthereum Mining How To
Ethereum Mining How To
Nugroho Gito
 
77201913
7720191377201913
77201913
IJRAT
 
77201913
7720191377201913
77201913
IJRAT
 
BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session
BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session
BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session
병완 임
 
Upfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deckUpfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deck
Mark Suster
 
Click Ventures Blockchain Ecosystem Report 2018
Click Ventures Blockchain Ecosystem Report 2018Click Ventures Blockchain Ecosystem Report 2018
Click Ventures Blockchain Ecosystem Report 2018
Frederick Ng
 
Blockchain analysis: 2016-11-23 MeetUp FinTech Marketpay.io - LemonPay.me
Blockchain analysis: 2016-11-23 MeetUp FinTech Marketpay.io - LemonPay.meBlockchain analysis: 2016-11-23 MeetUp FinTech Marketpay.io - LemonPay.me
Blockchain analysis: 2016-11-23 MeetUp FinTech Marketpay.io - LemonPay.me
Juan Ignacio Pérez Sacristán
 

Similar to Block 16 - Ethereum block transaction info via aggregated views API by Block 16 (20)

BlockChain for the Banker
BlockChain for the BankerBlockChain for the Banker
BlockChain for the Banker
 
Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_li
 
An Introduction to Blockchains
An Introduction to BlockchainsAn Introduction to Blockchains
An Introduction to Blockchains
 
Blockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentationBlockchain, cryptography and tokens — NYC Bar presentation
Blockchain, cryptography and tokens — NYC Bar presentation
 
Blockchain
BlockchainBlockchain
Blockchain
 
P5 to blockchain or not to blockchain
P5 to blockchain or not to blockchainP5 to blockchain or not to blockchain
P5 to blockchain or not to blockchain
 
Blockchain. A Guide For Beginners
Blockchain. A Guide For BeginnersBlockchain. A Guide For Beginners
Blockchain. A Guide For Beginners
 
Uni v2 eth-dai analysis
Uni v2 eth-dai analysisUni v2 eth-dai analysis
Uni v2 eth-dai analysis
 
Mind My Value: A decentralised infrastructure for fair and trusted IoT data ...
Mind My Value:  A decentralised infrastructure for fair and trusted IoT data ...Mind My Value:  A decentralised infrastructure for fair and trusted IoT data ...
Mind My Value: A decentralised infrastructure for fair and trusted IoT data ...
 
Detecting real-time market manipulation in decentralized cryptocurrency excha...
Detecting real-time market manipulation in decentralized cryptocurrency excha...Detecting real-time market manipulation in decentralized cryptocurrency excha...
Detecting real-time market manipulation in decentralized cryptocurrency excha...
 
Blockchain Corporate Style
Blockchain Corporate StyleBlockchain Corporate Style
Blockchain Corporate Style
 
Final paper blockchain
Final paper blockchain Final paper blockchain
Final paper blockchain
 
Blockchain Cryptocurrency
Blockchain CryptocurrencyBlockchain Cryptocurrency
Blockchain Cryptocurrency
 
Ethereum Mining How To
Ethereum Mining How ToEthereum Mining How To
Ethereum Mining How To
 
77201913
7720191377201913
77201913
 
77201913
7720191377201913
77201913
 
BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session
BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session
BlockchainDay "Ethereum Dapp - Asset Exchange YOSEMITE alpha" Session
 
Upfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deckUpfront Ventures blockchain and crypto deck
Upfront Ventures blockchain and crypto deck
 
Click Ventures Blockchain Ecosystem Report 2018
Click Ventures Blockchain Ecosystem Report 2018Click Ventures Blockchain Ecosystem Report 2018
Click Ventures Blockchain Ecosystem Report 2018
 
Blockchain analysis: 2016-11-23 MeetUp FinTech Marketpay.io - LemonPay.me
Blockchain analysis: 2016-11-23 MeetUp FinTech Marketpay.io - LemonPay.meBlockchain analysis: 2016-11-23 MeetUp FinTech Marketpay.io - LemonPay.me
Blockchain analysis: 2016-11-23 MeetUp FinTech Marketpay.io - LemonPay.me
 

Recently uploaded

"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 

Recently uploaded (20)

"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 

Block 16 - Ethereum block transaction info via aggregated views API by Block 16

  • 1. June 19, 2018 Ethereum Block & Transaction Info via Aggregated Views (API by Block 16) medium.com/block-16/ethereum-block-transaction-info-via-aggregated-views-api-by-block-16-aa9b175da929 When working with web applications that interface with Ethereum nodes, I’ve always found that I need more information than is provided by singular JSON-RPC calls. For instance, you can get the information about the block —but then have to run another call to get information about a transaction — and yet another call for the transaction receipt. If you are gathering and organizing this information at scale, it oftentimes requires over 500 HTTP requests and can take a lot of time (not to mention a burden on Infura). At Block 16 we have created internal APIs to present this information quickly along with different “views” or organizations of blockchain information. Today we are making some of these public. Get All Block Information by Number. Get all block information, uncles, transactions and receipts by block number. The datastructure is much like what’s returned from normal eth_getBlockByNumber RPC but includes a list of uncles, transactions, and receipts achieved from eth_getUncleByBlockNumberAndIndex, eth_getTransactionByHash and eth_getTransactionReceipt calls respectively. More information can be foundhere, by invoking the following command in terminal or clicking the link within the command: curl -X GET https://api.block16.io/v1/block/5000000 -H 'Accept: application/json' Get All Current Block Information. Get all block information, uncles, transactions and receipts for the current block. Internally we track all transactions on the network and perform various operations — so we tend to run about 1–10 seconds behind the current block. curl -X GET https://api.block16.io/v1/block/current -H 'Accept: application/json' Subscribe to Current Block via Websocket. Same as the endpoint described above but the websocket pushes the current block information upon connection and receives updates as blocks are processed. A sample application can be viewed here with source code available here. Get Last 100 TXs by Address. We have an interesting data format for this endpoint that is informed by availability and database space: 1/2
  • 2. { "address": "0000000000000000000000000000000000000008", "transactionDate": 1528012206000, "value": "1000000000000000000", "toAddress": "0000000000000000000000000000000000000008", "fromAddress": "dfa5d32e82ce9d131ca77f5e260c3d0d68deb61b", "ethereumContract": "3543638ed4a9006e4840b105944271bcea15605d", "transactionHash": "945ab5e688660478b0bb813cc6c2f4c8a17bb1d8bed810634ec203a26e7a74d8", "blockNumber": 5724039, "transactionType": "token_transaction", "fee": "16440820000000000" } Notice that all hex prefixes are removed and that there is a “toAddress”, “fromAddress” and an “address” field. Incoming transactions are found by matching “address” with the “toAddress” and outgoing by matching “address” with “fromAddress”. The “value” property is the base 10 raw value of the transaction in wei if it was not a token transaction. If it was a token transaction, the “value” property is the raw token amount without decimals. The “fee” is in base 10 wei. For more information about the structure of the data visit the documentation. Curl invocation: curl -X GET https://api.block16.io/v1/address/0x0000000000000000000000000000000000000001/transactio ns -H 'Accept: application/json' Get All Token Contracts Associated with an Address. This endpoint lists all token contract addresses that an Ethereum address has ever been associated with. As with the previous endpoint, the “0x” hexadecimal prefix is removed in order to save space in the database. curl -X GET https://api.block16.io/v1/address/0x0000000000000000000000000000000000000001/assets -H 'Accept: application/json' The formal slate documentation can be found at https://docs.block16.io/ . All of the endpoints have crossorigin headers included so you’ll be able to use them in a webapp, though there is a 30 request per minute limit implemented per IP. If these endpoints become popular we’ll consider increasing the request per minute limit and scaling/sharding our public databases. Our goal is to help the ecosystem create more responsive and informative webapps. Any feedback is greatly appreciated! 2/2