Alchemy allows high-performance access to blockchains like Ethereum (as well as some other ERC-20 compatible blockchains like Polygon, Optimism etc). This plugin makes it simple to power your blockchain applications built on Bubble and scale up as you grow. From elastic APIs & dedicated nodes to powerful tools & analytics, all at your command through a simple control panel. You can get instant access to both Mainnet and TestNet networks.
3. Fill in the required fields and click "Create app" button.
4. On dashboard select your app.
5. Select "WIEW KEY"
6. Copy your HTTP link
7. Go to the editor Plugin Tab and paste the HTTP link for Alchemy project into the plugin settings.
Alchemy API Call
1. eth_blockNumber
Parameters:
None
Returns:
QUANTITY - integer of the current block number the client is on.
2. eth_getBlockByHash
Parameters:
Data - 32 Bytes - Hash of a block.
Boolean - If true it returns the full transaction objects, if false it returns only the hashes of the transactions.
Returns:
Object - A block object with the following fields, or null when no block was found:
number: QUANTITY - the block number. null when its pending block.
hash: DATA, 32 Bytes - hash of the block. null when its pending block.
parentHash: DATA, 32 Bytes - hash of the parent block.
nonce: DATA, 8 Bytes - hash of the generated proof-of-work. null when its pending block.
sha3Uncles: DATA, 32 Bytes - SHA3 of the uncles data in the block.
logsBloom: DATA, 256 Bytes - the bloom filter for the logs of the block. null when its pending block.
transactionsRoot: DATA, 32 Bytes - the root of the transaction trie of the block.
stateRoot: DATA, 32 Bytes - the root of the final state trie of the block.
receiptsRoot: DATA, 32 Bytes - the root of the receipts trie of the block.
miner: DATA, 20 Bytes - the address of the beneficiary to whom the mining rewards were given.
difficulty: QUANTITY - integer of the difficulty for this block.
totalDifficulty: QUANTITY - integer of the total difficulty of the chain until this block.
extraData: DATA - the "extra data" field of this block.
size: QUANTITY - integer the size of this block in bytes.
gasLimit: QUANTITY - the maximum gas allowed in this block.
gasUsed: QUANTITY - the total used gas by all transactions in this block.
timestamp: QUANTITY - the unix timestamp for when the block was collated.
transactions: Array - Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.
uncles: Array - Array of uncle hashes.
3. eth_getBlockByNumber
Parameters:
Block - integer of a block number, or the string "earliest", "latest" or "pending".
Boolean - If true it returns the full transaction objects, if false only the hashes of the transactions.
Returns:
Object - A block object with the following fields, or null when no block was found:
number: QUANTITY - the block number. null when its pending block.
hash: DATA, 32 Bytes - hash of the block. null when its pending block.
parentHash: DATA, 32 Bytes - hash of the parent block.
nonce: DATA, 8 Bytes - hash of the generated proof-of-work. null when its pending block.
sha3Uncles: DATA, 32 Bytes - SHA3 of the uncles data in the block.
logsBloom: DATA, 256 Bytes - the bloom filter for the logs of the block. null when its pending block.
transactionsRoot: DATA, 32 Bytes - the root of the transaction trie of the block.
stateRoot: DATA, 32 Bytes - the root of the final state trie of the block.
receiptsRoot: DATA, 32 Bytes - the root of the receipts trie of the block.
miner: DATA, 20 Bytes - the address of the beneficiary to whom the mining rewards were given.
difficulty: QUANTITY - integer of the difficulty for this block.
totalDifficulty: QUANTITY - integer of the total difficulty of the chain until this block.
extraData: DATA - the "extra data" field of this block.
size: QUANTITY - integer the size of this block in bytes.
gasLimit: QUANTITY - the maximum gas allowed in this block.
gasUsed: QUANTITY - the total used gas by all transactions in this block.
timestamp: QUANTITY - the unix timestamp for when the block was collated.
transactions: Array - Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.
uncles: Array - Array of uncle hashes.
4. eth_getTransactionByHash
Parameters:
Data - 32 Bytes - hash of a transaction.
Returns:
Object - A transaction object, or null when no transaction was found:
blockHash: DATA, 32 Bytes - hash of the block where this transaction was in. null when its pending.
blockNumber: QUANTITY - block number where this transaction was in. null when it's pending.
from: DATA, 20 Bytes - address of the sender.
gas: QUANTITY - gas provided by the sender.
gasPrice: QUANTITY - gas price provided by the sender in Wei.
hash: DATA, 32 Bytes - hash of the transaction.
input: DATA - the data sent along with the transaction.
nonce: QUANTITY - the number of transactions made by the sender prior to this one.
to: DATA, 20 Bytes - address of the receiver. null when it's a contract creation transaction.
transactionIndex: QUANTITY - integer of the transactions index position in the block. null when its pending.
value: QUANTITY - value transferred in Wei.
v: QUANTITY - ECDSA recovery id
r: DATA, 32 Bytes - ECDSA signature r
s: DATA, 32 Bytes - ECDSA signature s
5. eth_getTransactionCount
Parameters:
Data - 20 Bytes - address.
Block - integer block number, or the string "latest", "earliest" or "pending"
Returns:
QUANTITY - integer of the number of transactions sent from this address.
6. eth_getBalance
Parameters:
Data - 20 Bytes - address to check for the balance.
Block - integer block number, or the string "latest", "earliest" or "pending"
Returns:
QUANTITY - integer of the current balance for the given address in Wei.
7.eth_getCode
Parameters:
Data - 20 Bytes - address.
Blcok - integer block number, or the string "latest", "earliest" or "pending"
Returns:
DATA - the code from the given address.
8. eth_getStorageAt
Parameters:
Data - 20 Bytes - address.
Quantity - integer of the position in the storage.
Block - integer block number, or the string "latest", "earliest" or "pending"
Returns:
DATA - the value at this storage position.
9. eth_accounts
Note! Since Alchemy does not store keys, this will always return empty.
Parameters:
none
Returns:
Array of DATA - 20 Bytes - addresses owned by the client.
10. eth_getProof
Parameters:
Data - 20 Bytes - address.
Array - 32 Bytes - array of storage-keys which should be proofed and included. See eth_getStorageAt.
Blcok - integer block number, or the string "latest", "earliest" or "pending"
Returns:
Object - A account object:
balance: QUANTITY - the balance of the account. See "eth_getBalance".
codeHash: DATA, 32 Bytes - hash of the code of the account. For a simple Account without code it will return "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
nonce: QUANTITY, - nonce of the account. See "eth_getTransactionCount"`
storageHash: DATA, 32 Bytes - SHA3 of the StorageRoot. All storage will deliver a MerkleProof starting with this rootHash.
accountProof: ARRAY - Array of rlp-serialized MerkleTree-Nodes, starting with the stateRoot-Node, following the path of the SHA3 (address) as key.
storageProof: ARRAY - Array of storage-entries as requested. Each entry is an object with these properties:
key: QUANTITY - the requested storage key
value: QUANTITY - the storage value
proof: ARRAY - Array of rlp-serialized MerkleTree-Nodes, starting with the storageHash-Node, following the path of the SHA3 (key) as path.
11. eth_call
Parameters:
From - 20 Bytes - (optional) The address the transaction is sent from.
To - 0 Bytes - The address the transaction is directed to.
Gas - (optional) Integer of the gas provided for the transaction execution.
GasPrice - (optional) Integer of the gasPrice used for each paid gas. Note: most of our users (95%+) never set the gasPrice on eth_call.
Value - (optional) Integer of the value sent with this transaction.
Data - (optional) Hash of the method signature and encoded parameters. For details see the Contract ABI
Block - integer block number, or the string "latest", "earliest" or "pending"
Note!eth_call has a timeout restriction at the node level. Batching multiple eth_calls together on-chain using pre-deployed smart contracts might result in unexpected timeouts that cause none of your calls to complete. Instead, consider serializing these calls, or using smaller batches if they fail with a node error code.
Returns:
DATA - the return value of executed contract.
12.eth_getLogs
Parameters:
Address - 20 Bytes - (optional) Contract address or a list of addresses from which logs should originate.
Topics - Array of DATA, - (optional) Array of 32 Bytes DATA topics.
Topics are order-dependent. Each topic can also be an array of DATA with "or" options.
Check out more details on how to format topics in eth_newFilter.
BlockHash - DATA, 32 Bytes - (optional) With the addition of EIP-234 (Geth >= v1.8.13 or Parity >= v2.1.0), blockHash is a new filter option which restricts the logs returned to the single block with the 32-byte hash blockHash. Using blockHash is equivalent to fromBlock = toBlock = the block number with hash blockHash. If blockHash is present in the filter criteria, then neither fromBlock nor toBlock are allowed.
Returns:
Array - Array of log objects, or an empty array if nothing has changed since last poll.
For filters created with eth_newBlockFilter the return are block hashes (DATA, 32 Bytes), e.g. ["0x3454645634534..."].
For filters created with eth_newPendingTransactionFilter the return are transaction hashes (DATA, 32 Bytes), e.g. ["0x6345343454645..."].
For filters created with eth_newFilter logs are objects with the following params:
removed: TAG - true when the log was removed, due to a chain reorganization. false if it's a valid log.
logIndex: QUANTITY - integer of the log index position in the block. null when it's pending log.
transactionIndex: QUANTITY - integer of the transactions index position log was created from. null when it's pending log.
transactionHash: DATA, 32 Bytes - hash of the transactions this log was created from. null when it's pending log.
blockHash: DATA, 32 Bytes - hash of the block where this log was in. null when it's pending. null when it's pending log.
blockNumber: QUANTITY - the block number where this log was in. null when it's pending. null when it's pending log.
address: DATA, 20 Bytes - address from which this log originated.
data: DATA - contains one or more 32 Bytes non-indexed arguments of the log.
topics: Array of DATA - Array of 0 to 4 32 Bytes DATA of indexed log arguments.
In solidity: The first topic is the hash of the signature of the event (e.g. Deposit(address,bytes32,uint256)), except you declare the event with the anonymous specifier.
13. eth_protocolVersion
Parameters:
none
Returns:
String - The current Ethereum protocol version.
14. eth_gasPrice
Parameters:
none
Returns:
QUANTITY - integer of the current gas price in Wei.
15. eth_estimateGas
Note!The estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance. Estimates are served directly from nodes, we're not doing anything special to the value so the rest of the network is likely seeing the same.
Parameters:
to - 20 Bytes - The address the transaction is directed to.
Returns:
QUANTITY - the amount of gas used.
16. eth_feeHistory
Parameters:
BLOCKCOUNT- Number of blocks in the requested range. Between 1 and 1024 blocks can be requested in a single query. Less than requested may be returned if not all blocks are available.
NEWSTBLOCK- Highest number block of the requested range.
REWARDPERCENTILES- (optional) A monotonically increasing list of percentile values to sample from each block's effective priority fees per gas in ascending order, weighted by gas used.
Returns:
Object
OLDESTBLOCK - Lowest number block of the returned range.
BASEFEEPERGAS - An array of block base fees per gas. This includes the next block after the newest of the returned range, because this value can be derived from the newest block. Zeroes are returned for pre-EIP-1559 blocks.
GASUSEDRATIO - An array of block gas used ratios. These are calculated as the ratio of gasUsed and gasLimit.
REWARD - (Optional) An array of effective priority fee per gas data points from a single block. All zeroes are returned if the block is empty.
17. eth_maxPriorityFeePerGas
Note!This method is not currently supported on Kovan
Parameters:
none
Returns:
QUANTITY - the estimated priority fee per gas
18. eth_chainId
Parameters:
none
Returns:
QUANTITY - integer of the current chain ID.
19. net_version
Parameters:
none
Returns:
String - The current network id.
"1": Ethereum Mainnet
"2": Morden Testnet (deprecated)
"3": Ropsten Testnet
"4": Rinkeby Testnet
"42": Kovan Testnet
20. net_listening
Parameters:
none
Returns:
Boolean - true when listening, otherwise false.
21. eth_getUncleByBlockNumberAndIndex
Parameters:
Block- a block number, or the string "earliest", "latest" or "pending",
Quantity- the uncle's index position.
Returns:
Object - A block object with the following fields, or null when no block was found:
number: QUANTITY - the block number. null when its pending block.
hash: DATA, 32 Bytes - hash of the block. null when its pending block.
parentHash: DATA, 32 Bytes - hash of the parent block.
nonce: DATA, 8 Bytes - hash of the generated proof-of-work. null when its pending block.
sha3Uncles: DATA, 32 Bytes - SHA3 of the uncle's data in the block.
logsBloom: DATA, 256 Bytes - the bloom filter for the logs of the block. null when its pending block.
transactionsRoot: DATA, 32 Bytes - the root of the transaction trie of the block.
stateRoot: DATA, 32 Bytes - the root of the final state trie of the block.
receiptsRoot: DATA, 32 Bytes - the root of the receipts trie of the block.
miner: DATA, 20 Bytes - the address of the beneficiary to whom the mining rewards were given.
difficulty: QUANTITY - integer of the difficulty for this block.
totalDifficulty: QUANTITY - integer of the total difficulty of the chain until this block.
extraData: DATA - the "extra data" field of this block.
size: QUANTITY - integer the size of this block in bytes.
gasLimit: QUANTITY - the maximum gas allowed in this block.
gasUsed: QUANTITY - the total used gas by all transactions in this block.
timestamp: QUANTITY - the unix timestamp for when the block was collated.
transactions: Array - Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.
uncles: Array - Array of uncle hashes.
22.eth_getUncleByBlockHashAndIndex
Parameters:
Block- 32 Bytes - hash of a block.
Quantity- the uncle's index position.
Returns:
Object - A block object with the following fields, or null when no block was found:
number: QUANTITY - the block number. null when its pending block.
hash: DATA, 32 Bytes - hash of the block. null when its pending block.
parentHash: DATA, 32 Bytes - hash of the parent block.
nonce: DATA, 8 Bytes - hash of the generated proof-of-work. null when its pending block.
sha3Uncles: DATA, 32 Bytes - SHA3 of the uncle's data in the block.
logsBloom: DATA, 256 Bytes - the bloom filter for the logs of the block. null when its pending block.
transactionsRoot: DATA, 32 Bytes - the root of the transaction trie of the block.
stateRoot: DATA, 32 Bytes - the root of the final state trie of the block.
receiptsRoot: DATA, 32 Bytes - the root of the receipts trie of the block.
miner: DATA, 20 Bytes - the address of the beneficiary to whom the mining rewards were given.
difficulty: QUANTITY - integer of the difficulty for this block.
totalDifficulty: QUANTITY - integer of the total difficulty of the chain until this block.
extraData: DATA - the "extra data" field of this block.
size: QUANTITY - integer the size of this block in bytes.
gasLimit: QUANTITY - the maximum gas allowed in this block.
gasUsed: QUANTITY - the total used gas by all transactions in this block.
timestamp: QUANTITY - the unix timestamp for when the block was collated.
transactions: Array - Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.
uncles: Array - Array of uncle hashes.
23. eth_getUncleCountByBlockHash
Parameters:
Data - 32 Bytes - hash of a block.
Returns:
QUANTITY - integer of the number of uncles in this block.
24. eth_getUncleCountByBlockNumber
Parameters:
Block - integer of a block number, or the string "latest", "earliest" or "pending"
Returns:
QUANTITY - integer of the number of uncles in this block.
25. eth_newPendingTransactionFilter
Parameters:
None
Returns:
QUANTITY - A filter id.
26. eth_uninstallFilter
Parameters:
Quantity - The filter id.
Returns:
Boolean - true if the filter was successfully uninstalled, otherwise false.
27. eth_getTransactionReceipt
Note!the receipt is not available for pending transactions.
Parameters:
Data - 32 Bytes - hash of a transaction
Returns:
Object - A transaction receipt object, or null when no receipt was found:
transactionHash: DATA, 32 Bytes - hash of the transaction.
transactionIndex: QUANTITY - integer of the transactions index position in the block.
blockHash: DATA, 32 Bytes - hash of the block where this transaction was in.
blockNumber: QUANTITY - block number where this transaction was in.
from: DATA, 20 Bytes - address of the sender.
to: DATA, 20 Bytes - address of the receiver. null when it's a contract creation transaction.
cumulativeGasUsed: QUANTITY - The total amount of gas used when this transaction was executed in the block.
gasUsed: QUANTITY - The amount of gas used by this specific transaction alone.
contractAddress: DATA, 20 Bytes - The contract address created, if the transaction was a contract creation, otherwise null.
logs: Array - Array of log objects, which this transaction generated.
logsBloom: DATA, 256 Bytes - Bloom filter for light clients to quickly retrieve related logs.
It also returns either:
root : DATA 32 bytes of post-transaction stateroot (pre Byzantium)
status: QUANTITY either 1 (success) or 0 (failure)
28. eth_getBlockTransactionCountByHash
Parameters:
Data - 32 Bytes - hash of a block.
Returns:
QUANTITY - integer of the number of transactions in this block.
29. eth_getBlockTransactionCountByNumber
Parameters:
Block - integer of a block number, or the string "earliest", "latest" or "pending"
Returns:
QUANTITY - integer of the number of transactions in this block.
30. eth_getTransactionByBlockHashAndIndex
Parameters:
Data - 32 Bytes - hash of a block.
Quantity- integer of the transaction index position.
Returns:
Object - A transaction object, or null when no transaction was found:
blockHash: DATA, 32 Bytes - hash of the block where this transaction was in. null when it's pending.
blockNumber: QUANTITY - block number where this transaction was in. null when it's pending.
from: DATA, 20 Bytes - address of the sender.
gas: QUANTITY - gas provided by the sender.
gasPrice: QUANTITY - gas price provided by the sender in Wei.
hash: DATA, 32 Bytes - hash of the transaction.
input: DATA - the data sent along with the transaction.
nonce: QUANTITY - the number of transactions made by the sender prior to this one.
to: DATA, 20 Bytes - address of the receiver. null when it's a contract creation transaction.
transactionIndex: QUANTITY - integer of the transactions index position in the block. null when it's pending.
value: QUANTITY - value transferred in Wei.
v: QUANTITY - ECDSA recovery id
r: DATA, 32 Bytes - ECDSA signature r
s: DATA, 32 Bytes - ECDSA signature s
31. eth_getTransactionByBlockNumberAndIndex
Parameters:
Block - 32 Bytes - hash of a block.
Quantity- integer of the transaction index position.
Returns:
Object - A transaction object, or null when no transaction was found:
blockHash: DATA, 32 Bytes - hash of the block where this transaction was in. null when its pending.
blockNumber: QUANTITY - block number where this transaction was in. null when it's pending.
from: DATA, 20 Bytes - address of the sender.
gas: QUANTITY - gas provided by the sender.
gasPrice: QUANTITY - gas price provided by the sender in Wei.
hash: DATA, 32 Bytes - hash of the transaction.
input: DATA - the data send along with the transaction.
nonce: QUANTITY - the number of transactions made by the sender prior to this one.
to: DATA, 20 Bytes - address of the receiver. null when it's a contract creation transaction.
transactionIndex: QUANTITY - integer of the transactions index position in the block. null when its pending.
value: QUANTITY - value transferred in Wei.
v: QUANTITY - ECDSA recovery id
r: DATA, 32 Bytes - ECDSA signature r
s: DATA, 32 Bytes - ECDSA signature s
32. eth_sendRawTransaction
Parameters:
Data - The signed transaction data.
Returns:
DATA - 32 Bytes - the transaction hash, or the zero hash if the transaction is not yet available.
Use "eth_sendRawTransaction" to get the contract address after the transaction was mined when you created a contract.
33. eth_newBlockFilter
Parameters:
None
Returns:
QUANTITY - A filter id.
34. eth_getFilterChanges
Parameters:
Quantity - the filter id.
Returns:
Array - Array of log objects, or an empty array if nothing has changed since the last poll.
Note!"eth_getFilterChanges" only returns logs since the filter was created, regardless of the block passed in to create the filter. To get logs ranging from a specific block you should use "eth_getLogs".
For filters created with eth_newBlockFilter the return are block hashes (DATA, 32 Bytes), e.g. ["0x3454645634534..."].
For filters created with eth_newPendingTransactionFilter the return are transaction hashes (DATA, 32 Bytes), e.g. ["0x6345343454645..."].
For filters created with eth_newFilter logs are objects with the following params:
removed: TAG - true when the log was removed, due to a chain reorganization. false if it's a valid log.
logIndex: QUANTITY - integer of the log index position in the block. null when it's pending log.
transactionIndex: QUANTITY - integer of the transactions index position log was created from. null when it's pending log.
transactionHash: DATA, 32 Bytes - hash of the transactions this log was created from. null when it's pending log.
blockHash: DATA, 32 Bytes - hash of the block where this log was in. null when it's pending. null when it's pending log.
blockNumber: QUANTITY - the block number where this log was in. null when it's pending. null when it's pending log.
address: DATA, 20 Bytes - address from which this log originated.
data: DATA - contains one or more 32 Bytes non-indexed arguments of the log.
topics: Array of DATA - Array of 0 to 4 32 Bytes DATA of indexed log arguments.
In solidity: The first topic is the hash of the signature of the event (e.g. Deposit(address,bytes32,uint256)), except you declare the event with the anonymous specifier.
35. eth_getFilterLogs
Parameters:
Quantity - the filter id.
Returns:
For filters created with eth_newBlockFilter the return are block hashes (DATA, 32 Bytes), e.g. ["0x3454645634534..."].
For filters created with eth_newPendingTransactionFilter the return are transaction hashes (DATA, 32 Bytes), e.g. ["0x6345343454645..."].
For filters created with eth_newFilter logs are objects with the following params:
removed: TAG - true when the log was removed, due to a chain reorganization. false if it's a valid log.
logIndex: QUANTITY - integer of the log index position in the block. null when it's pending log.
transactionIndex: QUANTITY - integer of the transactions index position log was created from. null when it's pending log.
transactionHash: DATA, 32 Bytes - hash of the transactions this log was created from. null when it's pending log.
blockHash: DATA, 32 Bytes - hash of the block where this log was in. null when it's pending. null when its pending log.
blockNumber: QUANTITY - the block number where this log was in. null when it's pending. null when it's pending log.
address: DATA, 20 Bytes - address from which this log originated.
data: DATA - contains one or more 32 Bytes non-indexed arguments of the log.
topics: Array of DATA - Array of 0 to 4 32 Bytes DATA of indexed log arguments.
In solidity: The first topic is the hash of the signature of the event (e.g. Deposit(address,bytes32,uint256)), except you declare the event with the anonymous specifier.
36. eth_newFilter
Parameters:
FromBlock- (optional, default: "latest") Integer block number, or "latest" for the last mined block or "pending", "earliest" for not yet mined transactions.
ToBlock - (optional, default: "latest") Integer block number, or "latest" for the last mined block or "pending", "earliest" for not yet mined transactions.
Returns:
QUANTITY - A filter id.
37. web3_clientVersion
Parameters:
none
Returns:
String - The current client version
38. eth_subscribe
Parameters:
name - subscription name.
Returns :
If successful this returns the subscription id.
39. eth_unsubscribe
Parameters:
id - subscription id.
Returns:
If successful this returns true.
40. web3_sha3
Parameters:
Data - the data in hex form to convert into a SHA3 hash
Returns:
DATA - The SHA3 result of the given string.
41. eth_syncing
Parameters:
none
Returns:
Object|Boolean, An object with sync status data or FALSE, when not syncing:
startingBlock: QUANTITY - The block at which the import started (will only be reset, after the sync reached his head)
currentBlock: QUANTITY - The current block, same as eth_blockNumber
highestBlock: QUANTITY - The estimated highest block