GetBlockNumberByTime
takes is:ethBlockTimestamp
- The Ethereum timestamp in Unix epoch nanoseconds to search for corresponding block.GetBlockTimeByNumber
takes is:ethBlockNumber
- The Ethereum block number to get the block's timestamp.call
in ethereum - we do not perform transactions from within our blockchain, mainly due to response time and finality considerations.CallMethod
takes are:contractAddress
- The Ethereum contract address with a 0x prefixjsonAbi
- The ABI of the call, as a JSON stringmethodName
- The method to call in the contractout
- The result of the contract call - this needs to be a pointer to the expected return value/struct, the struct members need to be defined as PascalCase style, see examples belowargs
- The variadic parameter list for the method you are calling on EthereumgetValues
we use the following code in our Orbs contract:GetTransactionLog
takes are:ethContractAddress
- The Ethereum contract address with a 0x prefixjsonAbi
- The ABI of the contract with the event, as a JSON stringethTxHash
- The Ethereum transaction address with a 0x prefixeventName
- The event to filter byout
- The event data, this needs to be a pointer to the expected return value/struct, the struct members need to be defined as PascalCase style. See an example below.ethBlockNumber
- The block number of the log requestedethTxIndex
- The transaction index in the blockGetTransactionLog()
for the following event ABI: