Hey @william thanks for sharing this information.
It seems like what you shared is the TransactionScript
which is used to create the transaction request. As I had mentioned before the getDecodedLogs
function expects an Array of TransactionResultReceipt
.
I’ve found your transaction on the explorer here.
If you scroll down on the json
output you should see an array of receipts
, if you pass that array of receipts
to getDecodedLogs
along with the other parameters required and it should successfully decode the logs.
I’ve shared it here so you can copy/paste.
receipts:[
{
__typename:"Receipt",
id:null,
to:"0x8f57764df7c07f6fe33ff3189f9369bf0ed2b5d1c4d24269567609186dedf63f",
pc:"11688",
is:"11688",
toAddress:null,
amount:"1000",
assetId:"0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07",
gas:"113150",
param1:"10480",
param2:"10496",
val:null,
ptr:null,
digest:null,
reason:null,
ra:null,
rb:null,
rc:null,
rd:null,
len:null,
receiptType:"CALL",
result:null,
gasUsed:null,
data:null,
sender:null,
recipient:null,
nonce:null,
contractId:null,
subId:null
},
{
__typename:"Receipt",
id:"0x8f57764df7c07f6fe33ff3189f9369bf0ed2b5d1c4d24269567609186dedf63f",
to:null,
pc:"28964",
is:"11688",
toAddress:null,
amount:null,
assetId:null,
gas:null,
param1:null,
param2:null,
val:null,
ptr:"67106273",
digest:"0xa7e7d0e66fbec45f1432ca25770c1b7824454673c088316974e6d88292aec33d",
reason:null,
ra:"0",
rb:"5566286078492628248",
rc:null,
rd:null,
len:"75",
receiptType:"LOG_DATA",
result:null,
gasUsed:null,
data:"0x40000000667753a24000000068588722000000000000000b6d796e616d652e7377617900000000000000003e15247411a05edc60391d7410eabc3d0ee2eb5f8b2bd8102b41e7e94b22fbf2",
sender:null,
recipient:null,
nonce:null,
contractId:null,
subId:null
},
{
__typename:"Receipt",
id:"0x8f57764df7c07f6fe33ff3189f9369bf0ed2b5d1c4d24269567609186dedf63f",
to:null,
pc:"29320",
is:"11688",
toAddress:null,
amount:null,
assetId:null,
gas:null,
param1:null,
param2:null,
val:null,
ptr:"67105249",
digest:"0x6aac4c241ff23f5acc8ccd969908a220cb3303818383f7a6a414688dd87fdb3e",
reason:null,
ra:null,
rb:null,
rc:null,
rd:null,
len:"19",
receiptType:"RETURN_DATA",
result:null,
gasUsed:null,
data:"0x000000000000000b6d796e616d652e73776179",
sender:null,
recipient:null,
nonce:null,
contractId:null,
subId:null
},
{
__typename:"Receipt",
id:null,
to:null,
pc:"10388",
is:"10368",
toAddress:null,
amount:null,
assetId:null,
gas:null,
param1:null,
param2:null,
val:"1",
ptr:null,
digest:null,
reason:null,
ra:null,
rb:null,
rc:null,
rd:null,
len:null,
receiptType:"RETURN",
result:null,
gasUsed:null,
data:null,
sender:null,
recipient:null,
nonce:null,
contractId:null,
subId:null
},
{
__typename:"Receipt",
id:null,
to:null,
pc:null,
is:null,
toAddress:null,
amount:null,
assetId:null,
gas:null,
param1:null,
param2:null,
val:null,
ptr:null,
digest:null,
reason:null,
ra:null,
rb:null,
rc:null,
rd:null,
len:null,
receiptType:"SCRIPT_RESULT",
result:"0",
gasUsed:"144200",
data:null,
sender:null,
recipient:null,
nonce:null,
contractId:null,
subId:null
}
],
Please let me know if this resolves your issue.