Fix response examples for getTokenAccountsByOwner and getTokenAccountsByDelegate

This commit is contained in:
Slavomir
2021-10-23 14:34:10 +03:00
committed by Michael Vines
parent 4188554e77
commit 63f94a4db3

View File

@ -2479,37 +2479,41 @@ Result:
}, },
"value": [ "value": [
{ {
"data": { "account": {
"program": "spl-token", "data": {
"parsed": { "program": "spl-token",
"info": { "parsed": {
"tokenAmount": { "info": {
"amount": "1", "tokenAmount": {
"decimals": 1, "amount": "1",
"uiAmount": 0.1, "decimals": 1,
"uiAmountString": "0.1", "uiAmount": 0.1,
"uiAmountString": "0.1"
},
"delegate": "4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T",
"delegatedAmount": {
"amount": "1",
"decimals": 1,
"uiAmount": 0.1,
"uiAmountString": "0.1"
},
"state": "initialized",
"isNative": false,
"mint": "3wyAj7Rt1TWVPZVteFJPLa26JmLvdb1CAKEFZm3NY75E",
"owner": "CnPoSPKXu7wJqxe59Fs72tkBeALovhsCxYeFwPCQH9TD"
}, },
"delegate": "4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T", "type": "account"
"delegatedAmount": {
"amount": "1",
"decimals": 1,
"uiAmount": 0.1,
"uiAmountString": "0.1",
},
"state": "initialized",
"isNative": false,
"mint": "3wyAj7Rt1TWVPZVteFJPLa26JmLvdb1CAKEFZm3NY75E",
"owner": "CnPoSPKXu7wJqxe59Fs72tkBeALovhsCxYeFwPCQH9TD"
}, },
"type": "account" "space": 165
}, },
"space": 165 "executable": false,
"lamports": 1726080,
"owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"rentEpoch": 4
}, },
"executable": false, "pubkey": "28YTZEwqtMHWrhWcvv34se7pjS7wctgqzCPB3gReCFKp"
"lamports": 1726080,
"owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"rentEpoch": 4
} }
] ]
}, },
"id": 1 "id": 1
@ -2577,37 +2581,40 @@ Result:
}, },
"value": [ "value": [
{ {
"data": { "account": {
"program": "spl-token", "data": {
"parsed": { "program": "spl-token",
"accountType": "account", "parsed": {
"info": { "accountType": "account",
"tokenAmount": { "info": {
"amount": "1", "tokenAmount": {
"decimals": 1, "amount": "1",
"uiAmount": 0.1, "decimals": 1,
"uiAmountString": "0.1", "uiAmount": 0.1,
"uiAmountString": "0.1"
},
"delegate": "4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T",
"delegatedAmount": {
"amount": "1",
"decimals": 1,
"uiAmount": 0.1,
"uiAmountString": "0.1"
},
"state": "initialized",
"isNative": false,
"mint": "3wyAj7Rt1TWVPZVteFJPLa26JmLvdb1CAKEFZm3NY75E",
"owner": "4Qkev8aNZcqFNSRhQzwyLMFSsi94jHqE8WNVTJzTP99F"
},
"type": "account"
}, },
"delegate": "4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T", "space": 165
"delegatedAmount": {
"amount": "1",
"decimals": 1,
"uiAmount": 0.1,
"uiAmountString": "0.1",
},
"state": "initialized",
"isNative": false,
"mint": "3wyAj7Rt1TWVPZVteFJPLa26JmLvdb1CAKEFZm3NY75E",
"owner": "4Qkev8aNZcqFNSRhQzwyLMFSsi94jHqE8WNVTJzTP99F"
}, },
"type": "account" "executable": false,
}, "lamports": 1726080,
"space": 165 "owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"rentEpoch": 4
}, },
"executable": false, "pubkey": "C2gJg6tKpQs41PRS1nC8aw3ZKNZK3HQQZGVrDFDup5nx"
"lamports": 1726080,
"owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"rentEpoch": 4
} }
] ]
}, },