根据交易id查询事件。
用法
visionWeb.getEventByTransactionID(txId);
入参
参数 | 描述 | 类型 | 默认值 |
---|---|---|---|
txId | 交易id | string | - |
返回值
array,事件信息。
示例
visionWeb.getEventByTransactionID("9f1a132ad9b77f0299f1f54b43ea8f75c2bad6beb84f54942a4deaa1a4ccfba0");
> [
{
block: 560311,
timestamp: 1607003409000,
contract: 'VUzCDX3TQccMCDhvwyo3V5CaC1zbEEmMwf',
name: 'Transfer',
transaction: '9f1a132ad9b77f0299f1f54b43ea8f75c2bad6beb84f54942a4deaa1a4ccfba0',
result: {
dst: '0x401a8da8a7fc86f0087f8c62e630d10df10a963b',
src: '0x063cdeee289c67580b6e6093f39098f77553b3e1',
wad: '9968'
},
resourceNode: 'fullNode',
unconfirmed: true
}
]