{"modulePath":"github.com/Evolution404/simcore","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package geth\n\nPackage geth contains the simplified mobile APIs to go-ethereum.\n\nThe scope of this package is \\*not\\* to allow writing a custom Ethereum client with pieces plucked from go-ethereum, rather to allow writing native dapps on mobile platforms. Keep this in mind when using or extending this package!\n\n### API limitations {#hdr-API_limitations}\n\nSince gomobile cannot bridge arbitrary types between Go and Android/iOS, the exposed APIs need to be manually wrapped into simplified types, with custom constructors and getters/setters to ensure that they can be meaningfully used from Java/ObjC too.\n\nWith this in mind, please try to limit the scope of this package and only add essentials without which mobile support cannot work, especially since manually syncing the code will be unwieldy otherwise. In the long term we might consider writing custom library generators, but those are out of scope now.\n\nContent wise each file in this package corresponds to an entire Go package from the go-ethereum repository. Please adhere to this scoping to prevent this package getting unmaintainable.\n\nWrapping guidelines:\n\nEvery type that is to be exposed should be wrapped into its own plain struct, which internally contains a single field: the original go-ethereum version. This is needed because gomobile cannot expose named types for now.\n\nWhenever a method argument or a return type is a custom struct, the pointer variant should always be used as value types crossing over between language boundaries might have strange behaviors.\n\nSlices of types should be converted into a single multiplicative type wrapping a go slice with the methods \\`Size\\`, \\`Get\\` and \\`Set\\`. Further slice operations should not be provided to limit the remote code complexity. Arrays should be avoided as much as possible since they complicate bounds checking.\n\nIf a method has multiple return values (e.g. some return + an error), those are generated as output arguments in ObjC. To avoid weird generated names like ret\\_0 for them, please always assign names to output variables if tuples.\n\nNote, a panic \\*cannot\\* cross over language boundaries, instead will result in an undebuggable SEGFAULT in the process. For error handling only ever use error returns, which may be the only or the second return.\n\n## Constants\n\n```go\nconst (\n\t// StandardScryptN is the N parameter of Scrypt encryption algorithm, using 256MB\n\t// memory and taking approximately 1s CPU time on a modern processor.\n\tStandardScryptN = int(keystore.StandardScryptN)\n\n\t// StandardScryptP is the P parameter of Scrypt encryption algorithm, using 256MB\n\t// memory and taking approximately 1s CPU time on a modern processor.\n\tStandardScryptP = int(keystore.StandardScryptP)\n\n\t// LightScryptN is the N parameter of Scrypt encryption algorithm, using 4MB\n\t// memory and taking approximately 100ms CPU time on a modern processor.\n\tLightScryptN = int(keystore.LightScryptN)\n\n\t// LightScryptP is the P parameter of Scrypt encryption algorithm, using 4MB\n\t// memory and taking approximately 100ms CPU time on a modern processor.\n\tLightScryptP = int(keystore.LightScryptP)\n)\n```\n\n## Functions\n\n```go\nfunc DecodeFromHex(s string) ([]byte, error)\n```\nDecodeFromHex decodes a hex string with 0x prefix.\n\n```go\nfunc EncodeToHex(b []byte) string\n```\nEncodeToHex encodes b as a hex string with 0x prefix.\n\n```go\nfunc GoerliGenesis() string\n```\nGoerliGenesis returns the JSON spec to use for the Goerli test network\n\n```go\nfunc MainnetGenesis() string\n```\nMainnetGenesis returns the JSON spec to use for the main Ethereum network. It is actually empty since that defaults to the hard coded binary genesis block.\n\n```go\nfunc RinkebyGenesis() string\n```\nRinkebyGenesis returns the JSON spec to use for the Rinkeby test network\n\n```go\nfunc RopstenGenesis() string\n```\nRopstenGenesis returns the JSON spec to use for the Ropsten test network.\n\n```go\nfunc SepoliaGenesis() string\n```\nSepoliaGenesis returns the JSON spec to use for the Sepolia test network.\n\n```go\nfunc SetVerbosity(level int)\n```\nSetVerbosity sets the global verbosity level (between 0 and 6 - see logger/verbosity.go).\n\n## Types\n\n```go\ntype Account struct {\n\t// contains filtered or unexported fields\n}\n```\nAccount represents a stored key.\n\n```go\nfunc (a *Account) GetAddress() *Address\n```\nGetAddress retrieves the address associated with the account.\n\n```go\nfunc (a *Account) GetURL() string\n```\nGetURL retrieves the canonical URL of the account.\n\n```go\ntype Accounts struct {\n\t// contains filtered or unexported fields\n}\n```\nAccounts represents a slice of accounts.\n\n```go\nfunc (a *Accounts) Get(index int) (account *Account, _ error)\n```\nGet returns the account at the given index from the slice.\n\n```go\nfunc (a *Accounts) Set(index int, account *Account) error\n```\nSet sets the account at the given index in the slice.\n\n```go\nfunc (a *Accounts) Size() int\n```\nSize returns the number of accounts in the slice.\n\n```go\ntype Address struct {\n\t// contains filtered or unexported fields\n}\n```\nAddress represents the 20 byte address of an Ethereum account.\n\n```go\nfunc NewAddressFromBytes(binary []byte) (address *Address, _ error)\n```\nNewAddressFromBytes converts a slice of bytes to a hash value.\n\n```go\nfunc NewAddressFromHex(hex string) (address *Address, _ error)\n```\nNewAddressFromHex converts a hex string to a address value.\n\n```go\nfunc (a *Address) GetBytes() []byte\n```\nGetBytes retrieves the byte representation of the address.\n\n```go\nfunc (a *Address) GetHex() string\n```\nGetHex retrieves the hex string representation of the address.\n\n```go\nfunc (a *Address) SetBytes(address []byte) error\n```\nSetBytes sets the specified slice of bytes as the address value.\n\n```go\nfunc (a *Address) SetHex(address string) error\n```\nSetHex sets the specified hex string as the address value.\n\n```go\nfunc (a *Address) String() string\n```\nString returns a printable representation of the address.\n\n```go\ntype Addresses struct {\n\t// contains filtered or unexported fields\n}\n```\nAddresses represents a slice of addresses.\n\n```go\nfunc NewAddresses(size int) *Addresses\n```\nNewAddresses creates a slice of uninitialized addresses.\n\n```go\nfunc NewAddressesEmpty() *Addresses\n```\nNewAddressesEmpty creates an empty slice of Addresses values.\n\n```go\nfunc (a *Addresses) Append(address *Address)\n```\nAppend adds a new address element to the end of the slice.\n\n```go\nfunc (a *Addresses) Get(index int) (address *Address, _ error)\n```\nGet returns the address at the given index from the slice.\n\n```go\nfunc (a *Addresses) Set(index int, address *Address) error\n```\nSet sets the address at the given index in the slice.\n\n```go\nfunc (a *Addresses) Size() int\n```\nSize returns the number of addresses in the slice.\n\n```go\ntype BigInt struct {\n\t// contains filtered or unexported fields\n}\n```\nA BigInt represents a signed multi-precision integer.\n\n```go\nfunc NewBigInt(x int64) *BigInt\n```\nNewBigInt allocates and returns a new BigInt set to x.\n\n```go\nfunc NewBigIntFromString(x string, base int) *BigInt\n```\nNewBigIntFromString allocates and returns a new BigInt set to x interpreted in the provided base.\n\n```go\nfunc (bi *BigInt) GetBytes() []byte\n```\nGetBytes returns the absolute value of x as a big-endian byte slice.\n\n```go\nfunc (bi *BigInt) GetInt64() int64\n```\nGetInt64 returns the int64 representation of x. If x cannot be represented in an int64, the result is undefined.\n\n```go\nfunc (bi *BigInt) GetString(base int) string\n```\nGetString returns the value of x as a formatted string in some number base.\n\n```go\nfunc (bi *BigInt) SetBytes(buf []byte)\n```\nSetBytes interprets buf as the bytes of a big-endian unsigned integer and sets the big int to that value.\n\n```go\nfunc (bi *BigInt) SetInt64(x int64)\n```\nSetInt64 sets the big int to x.\n\n```go\nfunc (bi *BigInt) SetString(x string, base int)\n```\nSetString sets the big int to x.\n\nThe string prefix determines the actual conversion base. A prefix of \"0x\" or \"0X\" selects base 16; the \"0\" prefix selects base 8, and a \"0b\" or \"0B\" prefix selects base 2. Otherwise the selected base is 10.\n\n```go\nfunc (bi *BigInt) Sign() int\n```\nSign returns:\n\n\t-1 if x \u003c  0\n\t 0 if x == 0\n\t+1 if x \u003e  0\n\n```go\nfunc (bi *BigInt) String() string\n```\nString returns the value of x as a formatted decimal string.\n\n```go\ntype BigInts struct {\n\t// contains filtered or unexported fields\n}\n```\nBigInts represents a slice of big ints.\n\n```go\nfunc NewBigInts(size int) *BigInts\n```\nNewBigInts creates a slice of uninitialized big numbers.\n\n```go\nfunc (bi *BigInts) Get(index int) (bigint *BigInt, _ error)\n```\nGet returns the bigint at the given index from the slice.\n\n```go\nfunc (bi *BigInts) Set(index int, bigint *BigInt) error\n```\nSet sets the big int at the given index in the slice.\n\n```go\nfunc (bi *BigInts) Size() int\n```\nSize returns the number of big ints in the slice.\n\n```go\ntype Binaries struct {\n\t// contains filtered or unexported fields\n}\n```\nBinaries represents a slice of byte slice\n\n```go\nfunc (bs *Binaries) Get(index int) (binary []byte, _ error)\n```\nGet returns the byte slice at the given index from the slice.\n\n```go\nfunc (bs *Binaries) Set(index int, binary []byte) error\n```\nSet sets the byte slice at the given index in the slice.\n\n```go\nfunc (bs *Binaries) Size() int\n```\nSize returns the number of byte slice in the slice.\n\n```go\nfunc (bs *Binaries) String() string\n```\nString implements the Stringer interface.\n\n```go\ntype Block struct {\n\t// contains filtered or unexported fields\n}\n```\nBlock represents an entire block in the Ethereum blockchain.\n\n```go\nfunc NewBlockFromJSON(data string) (*Block, error)\n```\nNewBlockFromJSON parses a block from a JSON data dump.\n\n```go\nfunc NewBlockFromRLP(data []byte) (*Block, error)\n```\nNewBlockFromRLP parses a block from an RLP data dump.\n\n```go\nfunc (b *Block) EncodeJSON() (string, error)\n```\nEncodeJSON encodes a block into a JSON data dump.\n\n```go\nfunc (b *Block) EncodeRLP() ([]byte, error)\n```\nEncodeRLP encodes a block into an RLP data dump.\n\n```go\nfunc (b *Block) GetBloom() *Bloom\n```\n\n```go\nfunc (b *Block) GetCoinbase() *Address\n```\n\n```go\nfunc (b *Block) GetDifficulty() *BigInt\n```\n\n```go\nfunc (b *Block) GetExtra() []byte\n```\n\n```go\nfunc (b *Block) GetGasLimit() int64\n```\n\n```go\nfunc (b *Block) GetGasUsed() int64\n```\n\n```go\nfunc (b *Block) GetHash() *Hash\n```\n\n```go\nfunc (b *Block) GetHeader() *Header\n```\n\n```go\nfunc (b *Block) GetMixDigest() *Hash\n```\n\n```go\nfunc (b *Block) GetNonce() int64\n```\n\n```go\nfunc (b *Block) GetNumber() int64\n```\n\n```go\nfunc (b *Block) GetParentHash() *Hash\n```\n\n```go\nfunc (b *Block) GetReceiptHash() *Hash\n```\n\n```go\nfunc (b *Block) GetRoot() *Hash\n```\n\n```go\nfunc (b *Block) GetTime() int64\n```\n\n```go\nfunc (b *Block) GetTransaction(hash *Hash) *Transaction\n```\n\n```go\nfunc (b *Block) GetTransactions() *Transactions\n```\n\n```go\nfunc (b *Block) GetTxHash() *Hash\n```\n\n```go\nfunc (b *Block) GetUncleHash() *Hash\n```\n\n```go\nfunc (b *Block) GetUncles() *Headers\n```\n\n```go\nfunc (b *Block) String() string\n```\nString returns a printable representation of the block.\n\n```go\ntype Bloom struct {\n\t// contains filtered or unexported fields\n}\n```\nBloom represents a 256 bit bloom filter.\n\n```go\nfunc (b *Bloom) GetBytes() []byte\n```\nGetBytes retrieves the byte representation of the bloom filter.\n\n```go\nfunc (b *Bloom) GetHex() string\n```\nGetHex retrieves the hex string representation of the bloom filter.\n\n```go\nfunc (b *Bloom) String() string\n```\nString returns a printable representation of the bloom filter.\n\n```go\ntype Bools struct {\n\t// contains filtered or unexported fields\n}\n```\nBools represents a slice of bool.\n\n```go\nfunc (bs *Bools) Get(index int) (b bool, _ error)\n```\nGet returns the bool at the given index from the slice.\n\n```go\nfunc (bs *Bools) Set(index int, b bool) error\n```\nSet sets the bool at the given index in the slice.\n\n```go\nfunc (bs *Bools) Size() int\n```\nSize returns the number of bool in the slice.\n\n```go\nfunc (bs *Bools) String() string\n```\nString implements the Stringer interface.\n\n```go\ntype BoundContract struct {\n\t// contains filtered or unexported fields\n}\n```\nBoundContract is the base wrapper object that reflects a contract on the Ethereum network. It contains a collection of methods that are used by the higher level contract bindings to operate.\n\n```go\nfunc BindContract(address *Address, abiJSON string, client *EthereumClient) (contract *BoundContract, _ error)\n```\nBindContract creates a low level contract interface through which calls and transactions may be made through.\n\n```go\nfunc DeployContract(opts *TransactOpts, abiJSON string, bytecode []byte, client *EthereumClient, args *Interfaces) (contract *BoundContract, _ error)\n```\nDeployContract deploys a contract onto the Ethereum blockchain and binds the deployment address with a wrapper.\n\n```go\nfunc (c *BoundContract) Call(opts *CallOpts, out *Interfaces, method string, args *Interfaces) error\n```\nCall invokes the (constant) contract method with params as input values and sets the output to result.\n\n```go\nfunc (c *BoundContract) GetAddress() *Address\n```\n\n```go\nfunc (c *BoundContract) GetDeployer() *Transaction\n```\n\n```go\nfunc (c *BoundContract) RawTransact(opts *TransactOpts, calldata []byte) (tx *Transaction, _ error)\n```\nRawTransact invokes the (paid) contract method with raw calldata as input values.\n\n```go\nfunc (c *BoundContract) Transact(opts *TransactOpts, method string, args *Interfaces) (tx *Transaction, _ error)\n```\nTransact invokes the (paid) contract method with params as input values.\n\n```go\nfunc (c *BoundContract) Transfer(opts *TransactOpts) (tx *Transaction, _ error)\n```\nTransfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.\n\n```go\ntype CallMsg struct {\n\t// contains filtered or unexported fields\n}\n```\nCallMsg contains parameters for contract calls.\n\n```go\nfunc NewCallMsg() *CallMsg\n```\nNewCallMsg creates an empty contract call parameter list.\n\n```go\nfunc (msg *CallMsg) GetData() []byte\n```\n\n```go\nfunc (msg *CallMsg) GetFrom() *Address\n```\n\n```go\nfunc (msg *CallMsg) GetGas() int64\n```\n\n```go\nfunc (msg *CallMsg) GetGasPrice() *BigInt\n```\n\n```go\nfunc (msg *CallMsg) GetTo() *Address\n```\n\n```go\nfunc (msg *CallMsg) GetValue() *BigInt\n```\n\n```go\nfunc (msg *CallMsg) SetData(data []byte)\n```\n\n```go\nfunc (msg *CallMsg) SetFrom(address *Address)\n```\n\n```go\nfunc (msg *CallMsg) SetGas(gas int64)\n```\n\n```go\nfunc (msg *CallMsg) SetGasPrice(price *BigInt)\n```\n\n```go\nfunc (msg *CallMsg) SetTo(address *Address)\n```\n\n```go\nfunc (msg *CallMsg) SetValue(value *BigInt)\n```\n\n```go\ntype CallOpts struct {\n\t// contains filtered or unexported fields\n}\n```\nCallOpts is the collection of options to fine tune a contract call request.\n\n```go\nfunc NewCallOpts() *CallOpts\n```\nNewCallOpts creates a new option set for contract calls.\n\n```go\nfunc (opts *CallOpts) GetGasLimit() int64\n```\n\n```go\nfunc (opts *CallOpts) IsPending() bool\n```\n\n```go\nfunc (opts *CallOpts) SetContext(context *Context)\n```\n\n```go\nfunc (opts *CallOpts) SetFrom(addr *Address)\n```\n\n```go\nfunc (opts *CallOpts) SetGasLimit(limit int64)\n```\n\n```go\nfunc (opts *CallOpts) SetPending(pending bool)\n```\n\n```go\ntype Context struct {\n\t// contains filtered or unexported fields\n}\n```\nContext carries a deadline, a cancellation signal, and other values across API boundaries.\n\n```go\nfunc NewContext() *Context\n```\nNewContext returns a non-nil, empty Context. It is never canceled, has no values, and has no deadline. It is typically used by the main function, initialization, and tests, and as the top-level Context for incoming requests.\n\n```go\nfunc (c *Context) WithCancel() *Context\n```\nWithCancel returns a copy of the original context with cancellation mechanism included.\n\nCanceling this context releases resources associated with it, so code should call cancel as soon as the operations running in this Context complete.\n\n```go\nfunc (c *Context) WithDeadline(sec int64, nsec int64) *Context\n```\nWithDeadline returns a copy of the original context with the deadline adjusted to be no later than the specified time.\n\nCanceling this context releases resources associated with it, so code should call cancel as soon as the operations running in this Context complete.\n\n```go\nfunc (c *Context) WithTimeout(nsec int64) *Context\n```\nWithTimeout returns a copy of the original context with the deadline adjusted to be no later than now + the duration specified.\n\nCanceling this context releases resources associated with it, so code should call cancel as soon as the operations running in this Context complete.\n\n```go\ntype Enode struct {\n\t// contains filtered or unexported fields\n}\n```\nEnode represents a host on the network.\n\n```go\nfunc NewEnode(rawurl string) (*Enode, error)\n```\nNewEnode parses a node designator.\n\nThere are two basic forms of node designators\n\n  - incomplete nodes, which only have the public key (node ID)\n  - complete nodes, which contain the public key and IP/Port information\n\nFor incomplete nodes, the designator must look like one of these\n\n\tenode://\u003chex node id\u003e\n\t\u003chex node id\u003e\n\nFor complete nodes, the node ID is encoded in the username portion of the URL, separated from the host by an @ sign. The hostname can only be given as an IP address, DNS domain names are not allowed. The port in the host name section is the TCP listening port. If the TCP and UDP (discovery) ports differ, the UDP port is specified as query parameter \"discport\".\n\nIn the following example, the node URL describes a node with IP address 10.3.58.6, TCP listening port 30303 and UDP discovery port 30301.\n\n\tenode://\u003chex node id\u003e@10.3.58.6:30303?discport=30301\n\n```go\ntype Enodes struct {\n\t// contains filtered or unexported fields\n}\n```\nEnodes represents a slice of accounts.\n\n```go\nfunc FoundationBootnodes() *Enodes\n```\nFoundationBootnodes returns the enode URLs of the P2P bootstrap nodes operated by the foundation running the V5 discovery protocol.\n\n```go\nfunc NewEnodes(size int) *Enodes\n```\nNewEnodes creates a slice of uninitialized enodes.\n\n```go\nfunc NewEnodesEmpty() *Enodes\n```\nNewEnodesEmpty creates an empty slice of Enode values.\n\n```go\nfunc (e *Enodes) Append(enode *Enode)\n```\nAppend adds a new enode element to the end of the slice.\n\n```go\nfunc (e *Enodes) Get(index int) (enode *Enode, _ error)\n```\nGet returns the enode at the given index from the slice.\n\n```go\nfunc (e *Enodes) Set(index int, enode *Enode) error\n```\nSet sets the enode at the given index in the slice.\n\n```go\nfunc (e *Enodes) Size() int\n```\nSize returns the number of enodes in the slice.\n\n```go\ntype EthereumClient struct {\n\t// contains filtered or unexported fields\n}\n```\nEthereumClient provides access to the Ethereum APIs.\n\n```go\nfunc NewEthereumClient(rawurl string) (client *EthereumClient, _ error)\n```\nNewEthereumClient connects a client to the given URL.\n\n```go\nfunc (ec *EthereumClient) CallContract(ctx *Context, msg *CallMsg, number int64) (output []byte, _ error)\n```\nCallContract executes a message call transaction, which is directly executed in the VM of the node, but never mined into the blockchain.\n\nblockNumber selects the block height at which the call runs. It can be \\\u003c0, in which case the code is taken from the latest known block. Note that state from very old blocks might not be available.\n\n```go\nfunc (ec *EthereumClient) EstimateGas(ctx *Context, msg *CallMsg) (gas int64, _ error)\n```\nEstimateGas tries to estimate the gas needed to execute a specific transaction based on the current pending state of the backend blockchain. There is no guarantee that this is the true gas limit requirement as other transactions may be added or removed by miners, but it should provide a basis for setting a reasonable default.\n\n```go\nfunc (ec *EthereumClient) FilterLogs(ctx *Context, query *FilterQuery) (logs *Logs, _ error)\n```\nFilterLogs executes a filter query.\n\n```go\nfunc (ec *EthereumClient) GetBalanceAt(ctx *Context, account *Address, number int64) (balance *BigInt, _ error)\n```\nGetBalanceAt returns the wei balance of the given account. The block number can be \\\u003c0, in which case the balance is taken from the latest known block.\n\n```go\nfunc (ec *EthereumClient) GetBlockByHash(ctx *Context, hash *Hash) (block *Block, _ error)\n```\nGetBlockByHash returns the given full block.\n\n```go\nfunc (ec *EthereumClient) GetBlockByNumber(ctx *Context, number int64) (block *Block, _ error)\n```\nGetBlockByNumber returns a block from the current canonical chain. If number is \\\u003c0, the latest known block is returned.\n\n```go\nfunc (ec *EthereumClient) GetCodeAt(ctx *Context, account *Address, number int64) (code []byte, _ error)\n```\nGetCodeAt returns the contract code of the given account. The block number can be \\\u003c0, in which case the code is taken from the latest known block.\n\n```go\nfunc (ec *EthereumClient) GetHeaderByHash(ctx *Context, hash *Hash) (header *Header, _ error)\n```\nGetHeaderByHash returns the block header with the given hash.\n\n```go\nfunc (ec *EthereumClient) GetHeaderByNumber(ctx *Context, number int64) (header *Header, _ error)\n```\nGetHeaderByNumber returns a block header from the current canonical chain. If number is \\\u003c0, the latest known header is returned.\n\n```go\nfunc (ec *EthereumClient) GetNonceAt(ctx *Context, account *Address, number int64) (nonce int64, _ error)\n```\nGetNonceAt returns the account nonce of the given account. The block number can be \\\u003c0, in which case the nonce is taken from the latest known block.\n\n```go\nfunc (ec *EthereumClient) GetPendingBalanceAt(ctx *Context, account *Address) (balance *BigInt, _ error)\n```\nGetPendingBalanceAt returns the wei balance of the given account in the pending state.\n\n```go\nfunc (ec *EthereumClient) GetPendingCodeAt(ctx *Context, account *Address) (code []byte, _ error)\n```\nGetPendingCodeAt returns the contract code of the given account in the pending state.\n\n```go\nfunc (ec *EthereumClient) GetPendingNonceAt(ctx *Context, account *Address) (nonce int64, _ error)\n```\nGetPendingNonceAt returns the account nonce of the given account in the pending state. This is the nonce that should be used for the next transaction.\n\n```go\nfunc (ec *EthereumClient) GetPendingStorageAt(ctx *Context, account *Address, key *Hash) (storage []byte, _ error)\n```\nGetPendingStorageAt returns the value of key in the contract storage of the given account in the pending state.\n\n```go\nfunc (ec *EthereumClient) GetPendingTransactionCount(ctx *Context) (count int, _ error)\n```\nGetPendingTransactionCount returns the total number of transactions in the pending state.\n\n```go\nfunc (ec *EthereumClient) GetStorageAt(ctx *Context, account *Address, key *Hash, number int64) (storage []byte, _ error)\n```\nGetStorageAt returns the value of key in the contract storage of the given account. The block number can be \\\u003c0, in which case the value is taken from the latest known block.\n\n```go\nfunc (ec *EthereumClient) GetTransactionByHash(ctx *Context, hash *Hash) (tx *Transaction, _ error)\n```\nGetTransactionByHash returns the transaction with the given hash.\n\n```go\nfunc (ec *EthereumClient) GetTransactionCount(ctx *Context, hash *Hash) (count int, _ error)\n```\nGetTransactionCount returns the total number of transactions in the given block.\n\n```go\nfunc (ec *EthereumClient) GetTransactionInBlock(ctx *Context, hash *Hash, index int) (tx *Transaction, _ error)\n```\nGetTransactionInBlock returns a single transaction at index in the given block.\n\n```go\nfunc (ec *EthereumClient) GetTransactionReceipt(ctx *Context, hash *Hash) (receipt *Receipt, _ error)\n```\nGetTransactionReceipt returns the receipt of a transaction by transaction hash. Note that the receipt is not available for pending transactions.\n\n```go\nfunc (ec *EthereumClient) GetTransactionSender(ctx *Context, tx *Transaction, blockhash *Hash, index int) (sender *Address, _ error)\n```\nGetTransactionSender returns the sender address of a transaction. The transaction must be included in blockchain at the given block and index.\n\n```go\nfunc (ec *EthereumClient) PendingCallContract(ctx *Context, msg *CallMsg) (output []byte, _ error)\n```\nPendingCallContract executes a message call transaction using the EVM. The state seen by the contract call is the pending state.\n\n```go\nfunc (ec *EthereumClient) SendTransaction(ctx *Context, tx *Transaction) error\n```\nSendTransaction injects a signed transaction into the pending pool for execution.\n\nIf the transaction was a contract creation use the TransactionReceipt method to get the contract address after the transaction has been mined.\n\n```go\nfunc (ec *EthereumClient) SubscribeFilterLogs(ctx *Context, query *FilterQuery, handler FilterLogsHandler, buffer int) (sub *Subscription, _ error)\n```\nSubscribeFilterLogs subscribes to the results of a streaming filter query.\n\n```go\nfunc (ec *EthereumClient) SubscribeNewHead(ctx *Context, handler NewHeadHandler, buffer int) (sub *Subscription, _ error)\n```\nSubscribeNewHead subscribes to notifications about the current blockchain head on the given channel.\n\n```go\nfunc (ec *EthereumClient) SuggestGasPrice(ctx *Context) (price *BigInt, _ error)\n```\nSuggestGasPrice retrieves the currently suggested gas price to allow a timely execution of a transaction.\n\n```go\nfunc (ec *EthereumClient) SyncProgress(ctx *Context) (progress *SyncProgress, _ error)\n```\nSyncProgress retrieves the current progress of the sync algorithm. If there's no sync currently running, it returns nil.\n\n```go\ntype FilterLogsHandler interface {\n\tOnFilterLogs(log *Log)\n\tOnError(failure string)\n}\n```\nFilterLogsHandler is a client-side subscription callback to invoke on events and subscription failure.\n\n```go\ntype FilterQuery struct {\n\t// contains filtered or unexported fields\n}\n```\nFilterQuery contains options for contract log filtering.\n\n```go\nfunc NewFilterQuery() *FilterQuery\n```\nNewFilterQuery creates an empty filter query for contract log filtering.\n\n```go\nfunc (fq *FilterQuery) GetAddresses() *Addresses\n```\n\n```go\nfunc (fq *FilterQuery) GetFromBlock() *BigInt\n```\n\n```go\nfunc (fq *FilterQuery) GetToBlock() *BigInt\n```\n\n```go\nfunc (fq *FilterQuery) GetTopics() *Topics\n```\n\n```go\nfunc (fq *FilterQuery) SetAddresses(addresses *Addresses)\n```\n\n```go\nfunc (fq *FilterQuery) SetFromBlock(fromBlock *BigInt)\n```\n\n```go\nfunc (fq *FilterQuery) SetToBlock(toBlock *BigInt)\n```\n\n```go\nfunc (fq *FilterQuery) SetTopics(topics *Topics)\n```\n\n```go\ntype Hash struct {\n\t// contains filtered or unexported fields\n}\n```\nHash represents the 32 byte Keccak256 hash of arbitrary data.\n\n```go\nfunc NewHashFromBytes(binary []byte) (hash *Hash, _ error)\n```\nNewHashFromBytes converts a slice of bytes to a hash value.\n\n```go\nfunc NewHashFromHex(hex string) (hash *Hash, _ error)\n```\nNewHashFromHex converts a hex string to a hash value.\n\n```go\nfunc (h *Hash) GetBytes() []byte\n```\nGetBytes retrieves the byte representation of the hash.\n\n```go\nfunc (h *Hash) GetHex() string\n```\nGetHex retrieves the hex string representation of the hash.\n\n```go\nfunc (h *Hash) SetBytes(hash []byte) error\n```\nSetBytes sets the specified slice of bytes as the hash value.\n\n```go\nfunc (h *Hash) SetHex(hash string) error\n```\nSetHex sets the specified hex string as the hash value.\n\n```go\nfunc (h *Hash) String() string\n```\nString implements Stringer interface for printable representation of the hash.\n\n```go\ntype Hashes struct {\n\t// contains filtered or unexported fields\n}\n```\nHashes represents a slice of hashes.\n\n```go\nfunc NewHashes(size int) *Hashes\n```\nNewHashes creates a slice of uninitialized Hashes.\n\n```go\nfunc NewHashesEmpty() *Hashes\n```\nNewHashesEmpty creates an empty slice of Hashes values.\n\n```go\nfunc (h *Hashes) Append(hash *Hash)\n```\nAppend adds a new Hash element to the end of the slice.\n\n```go\nfunc (h *Hashes) Get(index int) (hash *Hash, _ error)\n```\nGet returns the hash at the given index from the slice.\n\n```go\nfunc (h *Hashes) Set(index int, hash *Hash) error\n```\nSet sets the Hash at the given index in the slice.\n\n```go\nfunc (h *Hashes) Size() int\n```\nSize returns the number of hashes in the slice.\n\n```go\ntype Header struct {\n\t// contains filtered or unexported fields\n}\n```\nHeader represents a block header in the Ethereum blockchain.\n\n```go\nfunc NewHeaderFromJSON(data string) (*Header, error)\n```\nNewHeaderFromJSON parses a header from a JSON data dump.\n\n```go\nfunc NewHeaderFromRLP(data []byte) (*Header, error)\n```\nNewHeaderFromRLP parses a header from an RLP data dump.\n\n```go\nfunc (h *Header) EncodeJSON() (string, error)\n```\nEncodeJSON encodes a header into a JSON data dump.\n\n```go\nfunc (h *Header) EncodeRLP() ([]byte, error)\n```\nEncodeRLP encodes a header into an RLP data dump.\n\n```go\nfunc (h *Header) GetBloom() *Bloom\n```\n\n```go\nfunc (h *Header) GetCoinbase() *Address\n```\n\n```go\nfunc (h *Header) GetDifficulty() *BigInt\n```\n\n```go\nfunc (h *Header) GetExtra() []byte\n```\n\n```go\nfunc (h *Header) GetGasLimit() int64\n```\n\n```go\nfunc (h *Header) GetGasUsed() int64\n```\n\n```go\nfunc (h *Header) GetHash() *Hash\n```\n\n```go\nfunc (h *Header) GetMixDigest() *Hash\n```\n\n```go\nfunc (h *Header) GetNonce() *Nonce\n```\n\n```go\nfunc (h *Header) GetNumber() int64\n```\n\n```go\nfunc (h *Header) GetParentHash() *Hash\n```\n\n```go\nfunc (h *Header) GetReceiptHash() *Hash\n```\n\n```go\nfunc (h *Header) GetRoot() *Hash\n```\n\n```go\nfunc (h *Header) GetTime() int64\n```\n\n```go\nfunc (h *Header) GetTxHash() *Hash\n```\n\n```go\nfunc (h *Header) GetUncleHash() *Hash\n```\n\n```go\nfunc (h *Header) String() string\n```\nString returns a printable representation of the header.\n\n```go\ntype Headers struct {\n\t// contains filtered or unexported fields\n}\n```\nHeaders represents a slice of headers.\n\n```go\nfunc (h *Headers) Get(index int) (header *Header, _ error)\n```\nGet returns the header at the given index from the slice.\n\n```go\nfunc (h *Headers) Size() int\n```\nSize returns the number of headers in the slice.\n\n```go\ntype Interface struct {\n\t// contains filtered or unexported fields\n}\n```\nInterface represents a wrapped version of Go's interface{}, with the capacity to store arbitrary data types.\n\nSince it's impossible to get the arbitrary-ness converted between Go and mobile platforms, we're using explicit getters and setters for the conversions. There is of course no point in enumerating everything, just enough to support the contract bindins requiring client side generated code.\n\n```go\nfunc NewInterface() *Interface\n```\nNewInterface creates a new empty interface that can be used to pass around generic types.\n\n```go\nfunc (i *Interface) GetAddress() *Address\n```\n\n```go\nfunc (i *Interface) GetAddresses() *Addresses\n```\n\n```go\nfunc (i *Interface) GetBigInt() *BigInt\n```\n\n```go\nfunc (i *Interface) GetBigInts() *BigInts\n```\n\n```go\nfunc (i *Interface) GetBinaries() *Binaries\n```\n\n```go\nfunc (i *Interface) GetBinary() []byte\n```\n\n```go\nfunc (i *Interface) GetBool() bool\n```\n\n```go\nfunc (i *Interface) GetBools() *Bools\n```\n\n```go\nfunc (i *Interface) GetHash() *Hash\n```\n\n```go\nfunc (i *Interface) GetHashes() *Hashes\n```\n\n```go\nfunc (i *Interface) GetInt16() int16\n```\n\n```go\nfunc (i *Interface) GetInt16s() *BigInts\n```\n\n```go\nfunc (i *Interface) GetInt32() int32\n```\n\n```go\nfunc (i *Interface) GetInt32s() *BigInts\n```\n\n```go\nfunc (i *Interface) GetInt64() int64\n```\n\n```go\nfunc (i *Interface) GetInt64s() *BigInts\n```\n\n```go\nfunc (i *Interface) GetInt8() int8\n```\n\n```go\nfunc (i *Interface) GetInt8s() *BigInts\n```\n\n```go\nfunc (i *Interface) GetString() string\n```\n\n```go\nfunc (i *Interface) GetStrings() *Strings\n```\n\n```go\nfunc (i *Interface) GetUint16() *BigInt\n```\n\n```go\nfunc (i *Interface) GetUint16s() *BigInts\n```\n\n```go\nfunc (i *Interface) GetUint32() *BigInt\n```\n\n```go\nfunc (i *Interface) GetUint32s() *BigInts\n```\n\n```go\nfunc (i *Interface) GetUint64() *BigInt\n```\n\n```go\nfunc (i *Interface) GetUint64s() *BigInts\n```\n\n```go\nfunc (i *Interface) GetUint8() *BigInt\n```\n\n```go\nfunc (i *Interface) GetUint8s() *BigInts\n```\n\n```go\nfunc (i *Interface) SetAddress(address *Address)\n```\n\n```go\nfunc (i *Interface) SetAddresses(addrs *Addresses)\n```\n\n```go\nfunc (i *Interface) SetBigInt(bigint *BigInt)\n```\n\n```go\nfunc (i *Interface) SetBigInts(bigints *BigInts)\n```\n\n```go\nfunc (i *Interface) SetBinaries(binaries *Binaries)\n```\n\n```go\nfunc (i *Interface) SetBinary(binary []byte)\n```\n\n```go\nfunc (i *Interface) SetBool(b bool)\n```\n\n```go\nfunc (i *Interface) SetBools(bs *Bools)\n```\n\n```go\nfunc (i *Interface) SetDefaultAddress()\n```\n\n```go\nfunc (i *Interface) SetDefaultAddresses()\n```\n\n```go\nfunc (i *Interface) SetDefaultBigInt()\n```\n\n```go\nfunc (i *Interface) SetDefaultBigInts()\n```\n\n```go\nfunc (i *Interface) SetDefaultBinaries()\n```\n\n```go\nfunc (i *Interface) SetDefaultBinary()\n```\n\n```go\nfunc (i *Interface) SetDefaultBool()\n```\n\n```go\nfunc (i *Interface) SetDefaultBools()\n```\n\n```go\nfunc (i *Interface) SetDefaultHash()\n```\n\n```go\nfunc (i *Interface) SetDefaultHashes()\n```\n\n```go\nfunc (i *Interface) SetDefaultInt16()\n```\n\n```go\nfunc (i *Interface) SetDefaultInt16s()\n```\n\n```go\nfunc (i *Interface) SetDefaultInt32()\n```\n\n```go\nfunc (i *Interface) SetDefaultInt32s()\n```\n\n```go\nfunc (i *Interface) SetDefaultInt64()\n```\n\n```go\nfunc (i *Interface) SetDefaultInt64s()\n```\n\n```go\nfunc (i *Interface) SetDefaultInt8()\n```\n\n```go\nfunc (i *Interface) SetDefaultInt8s()\n```\n\n```go\nfunc (i *Interface) SetDefaultString()\n```\n\n```go\nfunc (i *Interface) SetDefaultStrings()\n```\n\n```go\nfunc (i *Interface) SetDefaultUint16()\n```\n\n```go\nfunc (i *Interface) SetDefaultUint16s()\n```\n\n```go\nfunc (i *Interface) SetDefaultUint32()\n```\n\n```go\nfunc (i *Interface) SetDefaultUint32s()\n```\n\n```go\nfunc (i *Interface) SetDefaultUint64()\n```\n\n```go\nfunc (i *Interface) SetDefaultUint64s()\n```\n\n```go\nfunc (i *Interface) SetDefaultUint8()\n```\n\n```go\nfunc (i *Interface) SetDefaultUint8s()\n```\n\n```go\nfunc (i *Interface) SetHash(hash *Hash)\n```\n\n```go\nfunc (i *Interface) SetHashes(hashes *Hashes)\n```\n\n```go\nfunc (i *Interface) SetInt16(n int16)\n```\n\n```go\nfunc (i *Interface) SetInt16s(bigints *BigInts)\n```\n\n```go\nfunc (i *Interface) SetInt32(n int32)\n```\n\n```go\nfunc (i *Interface) SetInt32s(bigints *BigInts)\n```\n\n```go\nfunc (i *Interface) SetInt64(n int64)\n```\n\n```go\nfunc (i *Interface) SetInt64s(bigints *BigInts)\n```\n\n```go\nfunc (i *Interface) SetInt8(n int8)\n```\n\n```go\nfunc (i *Interface) SetInt8s(bigints *BigInts)\n```\n\n```go\nfunc (i *Interface) SetString(str string)\n```\n\n```go\nfunc (i *Interface) SetStrings(strs *Strings)\n```\n\n```go\nfunc (i *Interface) SetUint16(bigint *BigInt)\n```\n\n```go\nfunc (i *Interface) SetUint16s(bigints *BigInts)\n```\n\n```go\nfunc (i *Interface) SetUint32(bigint *BigInt)\n```\n\n```go\nfunc (i *Interface) SetUint32s(bigints *BigInts)\n```\n\n```go\nfunc (i *Interface) SetUint64(bigint *BigInt)\n```\n\n```go\nfunc (i *Interface) SetUint64s(bigints *BigInts)\n```\n\n```go\nfunc (i *Interface) SetUint8(bigint *BigInt)\n```\n\n```go\nfunc (i *Interface) SetUint8s(bigints *BigInts)\n```\n\n```go\ntype Interfaces struct {\n\t// contains filtered or unexported fields\n}\n```\nInterfaces is a slices of wrapped generic objects.\n\n```go\nfunc NewInterfaces(size int) *Interfaces\n```\nNewInterfaces creates a slice of uninitialized interfaces.\n\n```go\nfunc (i *Interfaces) Get(index int) (iface *Interface, _ error)\n```\nGet returns the bigint at the given index from the slice. Notably the returned value can be changed without affecting the interfaces itself.\n\n```go\nfunc (i *Interfaces) Set(index int, object *Interface) error\n```\nSet sets the big int at the given index in the slice.\n\n```go\nfunc (i *Interfaces) Size() int\n```\nSize returns the number of interfaces in the slice.\n\n```go\ntype KeyStore struct {\n\t// contains filtered or unexported fields\n}\n```\nKeyStore manages a key storage directory on disk.\n\n```go\nfunc NewKeyStore(keydir string, scryptN, scryptP int) *KeyStore\n```\nNewKeyStore creates a keystore for the given directory.\n\n```go\nfunc (ks *KeyStore) DeleteAccount(account *Account, passphrase string) error\n```\nDeleteAccount deletes the key matched by account if the passphrase is correct. If a contains no filename, the address must match a unique key.\n\n```go\nfunc (ks *KeyStore) ExportKey(account *Account, passphrase, newPassphrase string) (key []byte, _ error)\n```\nExportKey exports as a JSON key, encrypted with newPassphrase.\n\n```go\nfunc (ks *KeyStore) GetAccounts() *Accounts\n```\nGetAccounts returns all key files present in the directory.\n\n```go\nfunc (ks *KeyStore) HasAddress(address *Address) bool\n```\nHasAddress reports whether a key with the given address is present.\n\n```go\nfunc (ks *KeyStore) ImportECDSAKey(key []byte, passphrase string) (account *Account, _ error)\n```\nImportECDSAKey stores the given encrypted JSON key into the key directory.\n\n```go\nfunc (ks *KeyStore) ImportKey(keyJSON []byte, passphrase, newPassphrase string) (account *Account, _ error)\n```\nImportKey stores the given encrypted JSON key into the key directory.\n\n```go\nfunc (ks *KeyStore) ImportPreSaleKey(keyJSON []byte, passphrase string) (ccount *Account, _ error)\n```\nImportPreSaleKey decrypts the given Ethereum presale wallet and stores a key file in the key directory. The key file is encrypted with the same passphrase.\n\n```go\nfunc (ks *KeyStore) Lock(address *Address) error\n```\nLock removes the private key with the given address from memory.\n\n```go\nfunc (ks *KeyStore) NewAccount(passphrase string) (*Account, error)\n```\nNewAccount generates a new key and stores it into the key directory, encrypting it with the passphrase.\n\n```go\nfunc (ks *KeyStore) SignHash(address *Address, hash []byte) (signature []byte, _ error)\n```\nSignHash calculates a ECDSA signature for the given hash. The produced signature is in the \\[R || S || V] format where V is 0 or 1.\n\n```go\nfunc (ks *KeyStore) SignHashPassphrase(account *Account, passphrase string, hash []byte) (signature []byte, _ error)\n```\nSignHashPassphrase signs hash if the private key matching the given address can be decrypted with the given passphrase. The produced signature is in the \\[R || S || V] format where V is 0 or 1.\n\n```go\nfunc (ks *KeyStore) SignTx(account *Account, tx *Transaction, chainID *BigInt) (*Transaction, error)\n```\nSignTx signs the given transaction with the requested account.\n\n```go\nfunc (ks *KeyStore) SignTxPassphrase(account *Account, passphrase string, tx *Transaction, chainID *BigInt) (*Transaction, error)\n```\nSignTxPassphrase signs the transaction if the private key matching the given address can be decrypted with the given passphrase.\n\n```go\nfunc (ks *KeyStore) TimedUnlock(account *Account, passphrase string, timeout int64) error\n```\nTimedUnlock unlocks the given account with the passphrase. The account stays unlocked for the duration of timeout (nanoseconds). A timeout of 0 unlocks the account until the program exits. The account must match a unique key file.\n\nIf the account address is already unlocked for a duration, TimedUnlock extends or shortens the active unlock timeout. If the address was previously unlocked indefinitely the timeout is not altered.\n\n```go\nfunc (ks *KeyStore) Unlock(account *Account, passphrase string) error\n```\nUnlock unlocks the given account indefinitely.\n\n```go\nfunc (ks *KeyStore) UpdateAccount(account *Account, passphrase, newPassphrase string) error\n```\nUpdateAccount changes the passphrase of an existing account.\n\n```go\ntype Log struct {\n\t// contains filtered or unexported fields\n}\n```\nLog represents a contract log event. These events are generated by the LOG opcode and stored/indexed by the node.\n\n```go\nfunc (l *Log) GetAddress() *Address\n```\n\n```go\nfunc (l *Log) GetBlockHash() *Hash\n```\n\n```go\nfunc (l *Log) GetBlockNumber() int64\n```\n\n```go\nfunc (l *Log) GetData() []byte\n```\n\n```go\nfunc (l *Log) GetIndex() int\n```\n\n```go\nfunc (l *Log) GetTopics() *Hashes\n```\n\n```go\nfunc (l *Log) GetTxHash() *Hash\n```\n\n```go\nfunc (l *Log) GetTxIndex() int\n```\n\n```go\ntype Logs struct {\n\t// contains filtered or unexported fields\n}\n```\nLogs represents a slice of VM logs.\n\n```go\nfunc (l *Logs) Get(index int) (log *Log, _ error)\n```\nGet returns the log at the given index from the slice.\n\n```go\nfunc (l *Logs) Size() int\n```\nSize returns the number of logs in the slice.\n\n```go\ntype MobileSigner struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *MobileSigner) Sign(addr *Address, unsignedTx *Transaction) (signedTx *Transaction, _ error)\n```\n\n```go\ntype NewHeadHandler interface {\n\tOnNewHead(header *Header)\n\tOnError(failure string)\n}\n```\nNewHeadHandler is a client-side subscription callback to invoke on events and subscription failure.\n\n```go\ntype Node struct {\n\t// contains filtered or unexported fields\n}\n```\nNode represents a Geth Ethereum node instance.\n\n```go\nfunc NewNode(datadir string, config *NodeConfig) (stack *Node, _ error)\n```\nNewNode creates and configures a new Geth node.\n\n```go\nfunc (n *Node) Close() error\n```\nClose terminates a running node along with all it's services, tearing internal state down. It is not possible to restart a closed node.\n\n```go\nfunc (n *Node) GetEthereumClient() (client *EthereumClient, _ error)\n```\nGetEthereumClient retrieves a client to access the Ethereum subsystem.\n\n```go\nfunc (n *Node) GetNodeInfo() *NodeInfo\n```\nGetNodeInfo gathers and returns a collection of metadata known about the host.\n\n```go\nfunc (n *Node) GetPeersInfo() *PeerInfos\n```\nGetPeersInfo returns an array of metadata objects describing connected peers.\n\n```go\nfunc (n *Node) Start() error\n```\nStart creates a live P2P node and starts running it.\n\n```go\nfunc (n *Node) Stop() error\n```\nStop terminates a running node along with all its services. If the node was not started, an error is returned. It is not possible to restart a stopped node.\n\nDeprecated: use Close()\n\n```go\ntype NodeConfig struct {\n\t// Bootstrap nodes used to establish connectivity with the rest of the network.\n\tBootstrapNodes *Enodes\n\n\t// MaxPeers is the maximum number of peers that can be connected. If this is\n\t// set to zero, then only the configured static and trusted peers can connect.\n\tMaxPeers int\n\n\t// EthereumEnabled specifies whether the node should run the Ethereum protocol.\n\tEthereumEnabled bool\n\n\t// EthereumNetworkID is the network identifier used by the Ethereum protocol to\n\t// decide if remote peers should be accepted or not.\n\tEthereumNetworkID int64 // uint64 in truth, but Java can't handle that...\n\n\t// EthereumGenesis is the genesis JSON to use to seed the blockchain with. An\n\t// empty genesis state is equivalent to using the mainnet's state.\n\tEthereumGenesis string\n\n\t// EthereumDatabaseCache is the system memory in MB to allocate for database caching.\n\t// A minimum of 16MB is always reserved.\n\tEthereumDatabaseCache int\n\n\t// EthereumNetStats is a netstats connection string to use to report various\n\t// chain, transaction and node stats to a monitoring server.\n\t//\n\t// It has the form \"nodename:secret@host:port\"\n\tEthereumNetStats string\n\n\t// Listening address of pprof server.\n\tPprofAddress string\n}\n```\nNodeConfig represents the collection of configuration values to fine tune the Geth node embedded into a mobile process. The available values are a subset of the entire API provided by go-ethereum to reduce the maintenance surface and dev complexity.\n\n```go\nfunc NewNodeConfig() *NodeConfig\n```\nNewNodeConfig creates a new node option set, initialized to the default values.\n\n```go\nfunc (conf *NodeConfig) AddBootstrapNode(node *Enode)\n```\nAddBootstrapNode adds an additional bootstrap node to the node config.\n\n```go\nfunc (conf *NodeConfig) EncodeJSON() (string, error)\n```\nEncodeJSON encodes a NodeConfig into a JSON data dump.\n\n```go\nfunc (conf *NodeConfig) String() string\n```\nString returns a printable representation of the node config.\n\n```go\ntype NodeInfo struct {\n\t// contains filtered or unexported fields\n}\n```\nNodeInfo represents pi short summary of the information known about the host.\n\n```go\nfunc (ni *NodeInfo) GetDiscoveryPort() int\n```\n\n```go\nfunc (ni *NodeInfo) GetEnode() string\n```\n\n```go\nfunc (ni *NodeInfo) GetID() string\n```\n\n```go\nfunc (ni *NodeInfo) GetIP() string\n```\n\n```go\nfunc (ni *NodeInfo) GetListenerAddress() string\n```\n\n```go\nfunc (ni *NodeInfo) GetListenerPort() int\n```\n\n```go\nfunc (ni *NodeInfo) GetName() string\n```\n\n```go\nfunc (ni *NodeInfo) GetProtocols() *Strings\n```\n\n```go\ntype Nonce struct {\n\t// contains filtered or unexported fields\n}\n```\nA Nonce is a 64-bit hash which proves (combined with the mix-hash) that a sufficient amount of computation has been carried out on a block.\n\n```go\nfunc (n *Nonce) GetBytes() []byte\n```\nGetBytes retrieves the byte representation of the block nonce.\n\n```go\nfunc (n *Nonce) GetHex() string\n```\nGetHex retrieves the hex string representation of the block nonce.\n\n```go\nfunc (n *Nonce) String() string\n```\nString returns a printable representation of the nonce.\n\n```go\ntype PeerInfo struct {\n\t// contains filtered or unexported fields\n}\n```\nPeerInfo represents pi short summary of the information known about pi connected peer.\n\n```go\nfunc (pi *PeerInfo) GetCaps() *Strings\n```\n\n```go\nfunc (pi *PeerInfo) GetID() string\n```\n\n```go\nfunc (pi *PeerInfo) GetLocalAddress() string\n```\n\n```go\nfunc (pi *PeerInfo) GetName() string\n```\n\n```go\nfunc (pi *PeerInfo) GetRemoteAddress() string\n```\n\n```go\ntype PeerInfos struct {\n\t// contains filtered or unexported fields\n}\n```\nPeerInfos represents a slice of infos about remote peers.\n\n```go\nfunc (pi *PeerInfos) Get(index int) (info *PeerInfo, _ error)\n```\nGet returns the peer info at the given index from the slice.\n\n```go\nfunc (pi *PeerInfos) Size() int\n```\nSize returns the number of peer info entries in the slice.\n\n```go\ntype Receipt struct {\n\t// contains filtered or unexported fields\n}\n```\nReceipt represents the results of a transaction.\n\n```go\nfunc NewReceiptFromJSON(data string) (*Receipt, error)\n```\nNewReceiptFromJSON parses a transaction receipt from a JSON data dump.\n\n```go\nfunc NewReceiptFromRLP(data []byte) (*Receipt, error)\n```\nNewReceiptFromRLP parses a transaction receipt from an RLP data dump.\n\n```go\nfunc (r *Receipt) EncodeJSON() (string, error)\n```\nEncodeJSON encodes a transaction receipt into a JSON data dump.\n\n```go\nfunc (r *Receipt) EncodeRLP() ([]byte, error)\n```\nEncodeRLP encodes a transaction receipt into an RLP data dump.\n\n```go\nfunc (r *Receipt) GetBloom() *Bloom\n```\n\n```go\nfunc (r *Receipt) GetContractAddress() *Address\n```\n\n```go\nfunc (r *Receipt) GetCumulativeGasUsed() int64\n```\n\n```go\nfunc (r *Receipt) GetGasUsed() int64\n```\n\n```go\nfunc (r *Receipt) GetLogs() *Logs\n```\n\n```go\nfunc (r *Receipt) GetPostState() []byte\n```\n\n```go\nfunc (r *Receipt) GetStatus() int\n```\n\n```go\nfunc (r *Receipt) GetTxHash() *Hash\n```\n\n```go\nfunc (r *Receipt) String() string\n```\nString returns a printable representation of the receipt.\n\n```go\ntype Signer interface {\n\tSign(addr *Address, unsignedTx *Transaction) (tx *Transaction, _ error)\n}\n```\nSigner is an interface defining the callback when a contract requires a method to sign the transaction before submission.\n\n```go\ntype Strings struct {\n\t// contains filtered or unexported fields\n}\n```\nStrings represents s slice of strs.\n\n```go\nfunc (s *Strings) Get(index int) (str string, _ error)\n```\nGet returns the string at the given index from the slice.\n\n```go\nfunc (s *Strings) Set(index int, str string) error\n```\nSet sets the string at the given index in the slice.\n\n```go\nfunc (s *Strings) Size() int\n```\nSize returns the number of strs in the slice.\n\n```go\nfunc (s *Strings) String() string\n```\nString implements the Stringer interface.\n\n```go\ntype Subscription struct {\n\t// contains filtered or unexported fields\n}\n```\nSubscription represents an event subscription where events are delivered on a data channel.\n\n```go\nfunc (s *Subscription) Unsubscribe()\n```\nUnsubscribe cancels the sending of events to the data channel and closes the error channel.\n\n```go\ntype SyncProgress struct {\n\t// contains filtered or unexported fields\n}\n```\nSyncProgress gives progress indications when the node is synchronising with the Ethereum network.\n\n```go\nfunc (p *SyncProgress) GetCurrentBlock() int64\n```\n\n```go\nfunc (p *SyncProgress) GetHealedBytecodeBytes() int64\n```\n\n```go\nfunc (p *SyncProgress) GetHealedBytecodes() int64\n```\n\n```go\nfunc (p *SyncProgress) GetHealedTrienodeBytes() int64\n```\n\n```go\nfunc (p *SyncProgress) GetHealedTrienodes() int64\n```\n\n```go\nfunc (p *SyncProgress) GetHealingBytecode() int64\n```\n\n```go\nfunc (p *SyncProgress) GetHealingTrienodes() int64\n```\n\n```go\nfunc (p *SyncProgress) GetHighestBlock() int64\n```\n\n```go\nfunc (p *SyncProgress) GetStartingBlock() int64\n```\n\n```go\nfunc (p *SyncProgress) GetSyncedAccountBytes() int64\n```\n\n```go\nfunc (p *SyncProgress) GetSyncedAccounts() int64\n```\n\n```go\nfunc (p *SyncProgress) GetSyncedBytecodeBytes() int64\n```\n\n```go\nfunc (p *SyncProgress) GetSyncedBytecodes() int64\n```\n\n```go\nfunc (p *SyncProgress) GetSyncedStorage() int64\n```\n\n```go\nfunc (p *SyncProgress) GetSyncedStorageBytes() int64\n```\n\n```go\ntype Topics struct {\n\t// contains filtered or unexported fields\n}\n```\nTopics is a set of topic lists to filter events with.\n\n```go\nfunc NewTopics(size int) *Topics\n```\nNewTopics creates a slice of uninitialized Topics.\n\n```go\nfunc NewTopicsEmpty() *Topics\n```\nNewTopicsEmpty creates an empty slice of Topics values.\n\n```go\nfunc (t *Topics) Append(topics *Hashes)\n```\nAppend adds a new topic list to the end of the slice.\n\n```go\nfunc (t *Topics) Get(index int) (hashes *Hashes, _ error)\n```\nGet returns the topic list at the given index from the slice.\n\n```go\nfunc (t *Topics) Set(index int, topics *Hashes) error\n```\nSet sets the topic list at the given index in the slice.\n\n```go\nfunc (t *Topics) Size() int\n```\nSize returns the number of topic lists inside the set\n\n```go\ntype TransactOpts struct {\n\t// contains filtered or unexported fields\n}\n```\nTransactOpts is the collection of authorization data required to create a valid Ethereum transaction.\n\n```go\nfunc NewKeyedTransactOpts(keyJson []byte, passphrase string, chainID *big.Int) (*TransactOpts, error)\n```\nNewKeyedTransactOpts is a utility method to easily create a transaction signer from a single private key.\n\n```go\nfunc NewTransactOpts() *TransactOpts\n```\nNewTransactOpts creates a new option set for contract transaction.\n\n```go\nfunc (opts *TransactOpts) GetFrom() *Address\n```\n\n```go\nfunc (opts *TransactOpts) GetGasLimit() int64\n```\n\n```go\nfunc (opts *TransactOpts) GetGasPrice() *BigInt\n```\n\n```go\nfunc (opts *TransactOpts) GetNonce() int64\n```\n\n```go\nfunc (opts *TransactOpts) GetValue() *BigInt\n```\n\n```go\nfunc (opts *TransactOpts) SetContext(context *Context)\n```\n\n```go\nfunc (opts *TransactOpts) SetFrom(from *Address)\n```\n\n```go\nfunc (opts *TransactOpts) SetGasLimit(limit int64)\n```\n\n```go\nfunc (opts *TransactOpts) SetGasPrice(price *BigInt)\n```\n\n```go\nfunc (opts *TransactOpts) SetNonce(nonce int64)\n```\n\n```go\nfunc (opts *TransactOpts) SetSigner(s Signer)\n```\n\n```go\nfunc (opts *TransactOpts) SetValue(value *BigInt)\n```\n\n```go\ntype Transaction struct {\n\t// contains filtered or unexported fields\n}\n```\nTransaction represents a single Ethereum transaction.\n\n```go\nfunc NewContractCreation(nonce int64, amount *BigInt, gasLimit int64, gasPrice *BigInt, data []byte) *Transaction\n```\nNewContractCreation creates a new transaction for deploying a new contract with the given properties.\n\n```go\nfunc NewTransaction(nonce int64, to *Address, amount *BigInt, gasLimit int64, gasPrice *BigInt, data []byte) *Transaction\n```\nNewTransaction creates a new transaction with the given properties. Contracts can be created by transacting with a nil recipient.\n\n```go\nfunc NewTransactionFromJSON(data string) (*Transaction, error)\n```\nNewTransactionFromJSON parses a transaction from a JSON data dump.\n\n```go\nfunc NewTransactionFromRLP(data []byte) (*Transaction, error)\n```\nNewTransactionFromRLP parses a transaction from an RLP data dump.\n\n```go\nfunc (tx *Transaction) EncodeJSON() (string, error)\n```\nEncodeJSON encodes a transaction into a JSON data dump.\n\n```go\nfunc (tx *Transaction) EncodeRLP() ([]byte, error)\n```\nEncodeRLP encodes a transaction into an RLP data dump.\n\n```go\nfunc (tx *Transaction) GetCost() *BigInt\n```\n\n```go\nfunc (tx *Transaction) GetData() []byte\n```\n\n```go\nfunc (tx *Transaction) GetGas() int64\n```\n\n```go\nfunc (tx *Transaction) GetGasPrice() *BigInt\n```\n\n```go\nfunc (tx *Transaction) GetHash() *Hash\n```\n\n```go\nfunc (tx *Transaction) GetNonce() int64\n```\n\n```go\nfunc (tx *Transaction) GetTo() *Address\n```\n\n```go\nfunc (tx *Transaction) GetValue() *BigInt\n```\n\n```go\nfunc (tx *Transaction) String() string\n```\nString returns a printable representation of the transaction.\n\n```go\nfunc (tx *Transaction) WithSignature(sig []byte, chainID *BigInt) (signedTx *Transaction, _ error)\n```\n\n```go\ntype Transactions struct {\n\t// contains filtered or unexported fields\n}\n```\nTransactions represents a slice of transactions.\n\n```go\nfunc (txs *Transactions) Get(index int) (tx *Transaction, _ error)\n```\nGet returns the transaction at the given index from the slice.\n\n```go\nfunc (txs *Transactions) Size() int\n```\nSize returns the number of transactions in the slice.\n\n","path":"github.com/Evolution404/simcore/mobile","name":"geth","synopsis":"Package geth contains the simplified mobile APIs to go-ethereum.","isRedistributable":true}
