Fix response examples for getTokenAccountsByOwner and getTokenAccountsByDelegate (#20919)

(cherry picked from commit 63f94a4db3)

Co-authored-by: Slavomir <gagliardetto@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2021-10-23 16:43:13 +00:00
committed by GitHub
parent 460dcad578
commit 47e80be023

View File

@ -2569,6 +2569,7 @@ Result:
},
"value": [
{
"account": {
"data": {
"program": "spl-token",
"parsed": {
@ -2577,14 +2578,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,
@ -2599,7 +2600,10 @@ Result:
"lamports": 1726080,
"owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"rentEpoch": 4
},
"pubkey": "28YTZEwqtMHWrhWcvv34se7pjS7wctgqzCPB3gReCFKp"
}
]
},
"id": 1
@ -2667,6 +2671,7 @@ Result:
},
"value": [
{
"account": {
"data": {
"program": "spl-token",
"parsed": {
@ -2676,14 +2681,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,
@ -2698,6 +2703,8 @@ Result:
"lamports": 1726080,
"owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"rentEpoch": 4
},
"pubkey": "C2gJg6tKpQs41PRS1nC8aw3ZKNZK3HQQZGVrDFDup5nx"
}
]
},