Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is eth_getBalance still available? #1

Open
dantol29 opened this issue Jul 30, 2024 · 0 comments
Open

Is eth_getBalance still available? #1

dantol29 opened this issue Jul 30, 2024 · 0 comments

Comments

@dantol29
Copy link

Hey, great example! Helped me a lot to optimize my interaction with the EVM RPC Canister. Although, there is 1 thing that I did not understand - eth_getBalance. I couldn't find information about eth_getBalance. Is it still available?

Official documentation:

The following JSON-RPC methods are available as part of the canister's Candid interface:
eth_feeHistory: Queries the historical fee data to estimate gas prices for transactions.
eth_getLogs: Queries the logs of a specified block or transaction.
eth_getBlockByNumber: Queries information about a given block.
eth_getTransactionCount: Queries the number of transactions for a specified address.
eth_getTransactionReceipt: Queries details about a submitted transaction.
eth_sendRawTransaction: Submits a signed transaction to the Ethereum network.
Other RPC methods, including those specific to non-Ethereum networks, may be accessed using the canister's request method

Also in the official examples they use:

EVM_RPC.eth_get_transaction_count(rpc_services, None, args.clone(), 2_000_000_000_u128).await

But in your example:

canister_call_with_payment(...).await

is there any difference or is it basically the same?

Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant