mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-08 08:33:07 +00:00
Allows specified number of transaction confirmations to be awaited before a transaction is considered finalised. Polls for a transaction receipt then listens for new blocks and calculates the number of blocks between the receipt and the new block. Notes 1. Only works with websockets currently 2. Replaced transaction not supported yet
15 lines
742 B
Nim
15 lines
742 B
Nim
proc net_version(): string
|
|
proc eth_accounts: seq[Address]
|
|
proc eth_blockNumber: UInt256
|
|
proc eth_call(transaction: Transaction, blockTag: BlockTag): seq[byte]
|
|
proc eth_gasPrice(): UInt256
|
|
proc eth_getBlockByNumber(blockTag: BlockTag, includeTransactions: bool): ?Block
|
|
proc eth_getTransactionCount(address: Address, blockTag: BlockTag): UInt256
|
|
proc eth_estimateGas(transaction: Transaction): UInt256
|
|
proc eth_chainId(): UInt256
|
|
proc eth_sendTransaction(transaction: Transaction): TransactionHash
|
|
proc eth_getTransactionReceipt(hash: TransactionHash): ?TransactionReceipt
|
|
proc eth_sign(account: Address, message: seq[byte]): seq[byte]
|
|
proc eth_subscribe(name: string, filter = Filter.none): JsonNode
|
|
proc eth_unsubscribe(id: JsonNode): bool
|