Skip to content

Ethereum Example dApp

ethereum_dapp

Build your first dApp for Ethereum using Amberdata.io API! Utilize ABI, logs, internal message & transactions to display an interactive activity stream

Check out the demo page!

const config = {
  headers: {"x-api-key": "YOUR_API_KEY_HERE"}
}

// Get general information and account balance
const getAddressInformation = (hash) => 
axios.get(`https://web3api.io/api/v2/addresses/${hash}/information`, config)

// Get the latest transactions for an address
const getAddressTransactions = (hash) => 
axios.get(`https://web3api.io/api/v2/addresses/${hash}/transactions?page=0&size=50`, config)

// If this address is a contract, get latest function calls & events
const getAddressFunctions = (id) => 
axios.get(`https://web3api.io/api/v2/blocks/${id}/functions?page=0&size=50`, config)

// If this address is a contract, get latest events
const getAddressLogs = (id) => 
axios.get(`https://web3api.io/api/v2/blocks/${id}/logs?page=0&size=50`, config)