Ethereum Example 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 = (address) => axios.get(`https://web3api.io/api/v1/addresses/${address}/information`, config)

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

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

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