Common functions
The following functions are always present in judger
object
Get Event Type
Returns type of the event.
Returns
Returns string
of the event type, which could be "execution"
or "token"
.
Example
Get Event Chain
Returns chain of the event.
Returns
Returns string
of the chain name, which could be "eth"
"bsc"
"polygon"
"goerli"
or "bitkub"
.
Example
Get Ethereum Transaction
Return an Ethereum transaction of the event.
Returns
Returns object
:
hash -
string
: Hash of the transaction.nonce - number: The number of transactions made by the sender prior to this one.
blockHash - string: Hash of the block where this transaction was in.
null
if pending.blockNumber - number: Block number where this transaction was in.
null
if pending.transactionIndex - number: Integer of the transactions index position in the block.
null
if pending.from - string: Address of the sender.
to - string: Address of the receiver.
null
if it’s a contract creation transaction.value - string: Value transferred in wei.
gas - number: Gas provided by the sender.
gasPrice - string: Gas price provided by the sender in wei.
input - string: The data sent along with the transaction.
Example
Last updated