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
1 changed files with 61 additions and 54 deletions

View File

@ -2479,6 +2479,7 @@ Result:
},
"value": [
{
"account": {
"data": {
"program": "spl-token",
"parsed": {
@ -2487,14 +2488,14 @@ Result:
"amount": "1",
"decimals": 1,
"uiAmount": 0.1,
"uiAmountString": "0.1",
"uiAmountString": "0.1"
},
"delegate": "4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T",
"delegatedAmount": {
"amount": "1",
"decimals": 1,
"uiAmount": 0.1,
"uiAmountString": "0.1",
"uiAmountString": "0.1"
},
"state": "initialized",
"isNative": false,
@ -2509,7 +2510,10 @@ Result:
"lamports": 1726080,
"owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"rentEpoch": 4
},
"pubkey": "28YTZEwqtMHWrhWcvv34se7pjS7wctgqzCPB3gReCFKp"
}
]
},
"id": 1
@ -2577,6 +2581,7 @@ Result:
},
"value": [
{
"account": {
"data": {
"program": "spl-token",
"parsed": {
@ -2586,14 +2591,14 @@ Result:
"amount": "1",
"decimals": 1,
"uiAmount": 0.1,
"uiAmountString": "0.1",
"uiAmountString": "0.1"
},
"delegate": "4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T",
"delegatedAmount": {
"amount": "1",
"decimals": 1,
"uiAmount": 0.1,
"uiAmountString": "0.1",
"uiAmountString": "0.1"
},
"state": "initialized",
"isNative": false,
@ -2608,6 +2613,8 @@ Result:
"lamports": 1726080,
"owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"rentEpoch": 4
},
"pubkey": "C2gJg6tKpQs41PRS1nC8aw3ZKNZK3HQQZGVrDFDup5nx"
}
]
},