Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

[docs/rpc] fix incorrect space labels #628

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions docs/rpc/http/getAccountInfo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ The result will be an RpcResponse JSON object with `value` equal to:
\(and is strictly read-only\)
- `rentEpoch: <u64>` - the epoch at which this account will next owe rent, as
u64
- `size: <u64>` - the data size of the account
- `space: <u64>` - the data size of the account

</DocLeftSide>

Expand Down Expand Up @@ -120,19 +120,14 @@ curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -
{
"jsonrpc": "2.0",
"result": {
"context": {
"slot": 1
},
"context": { "apiVersion": "2.0.15", "slot": 341197053 },
"value": {
"data": [
"11116bv5nS2h3y12kD1yUKeMZvGcKLSjQgX6BeV7u1FrjeJcKfsHRTPuR3oZ1EioKtYGiYxpxMG5vpbZLsbcBYBEmZZcMKaSoGx9JZeAuWf",
"base58"
],
"data": ["", "base58"],
"executable": false,
"lamports": 1000000000,
"lamports": 88849814690250,
"owner": "11111111111111111111111111111111",
"rentEpoch": 2,
"space": 80
"rentEpoch": 18446744073709551615,
"space": 0
}
},
"id": 1
Expand Down
22 changes: 10 additions & 12 deletions docs/rpc/http/getMultipleAccounts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ The result will be a JSON object with `value` equal to an array of:
\(and is strictly read-only\)
- `rentEpoch: <u64>` - the epoch at which this account will next owe rent, as
u64
- `space: <u64>` - the data size of the account
- `size: <u64>` - the data size of the account
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is being changed from space to size, while the rest are size to space. Is this intentional?


</DocLeftSide>

Expand Down Expand Up @@ -126,24 +126,22 @@ curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -
{
"jsonrpc": "2.0",
"result": {
"context": {
"slot": 1
},
"context": { "apiVersion": "2.0.15", "slot": 341197247 },
"value": [
{
"data": ["", "base64"],
"data": ["", "base58"],
"executable": false,
"lamports": 1000000000,
"lamports": 88849814690250,
"owner": "11111111111111111111111111111111",
"rentEpoch": 2,
"space": 16
"rentEpoch": 18446744073709551615,
"space": 0
},
{
"data": ["", "base64"],
"data": ["", "base58"],
"executable": false,
"lamports": 5000000000,
"owner": "11111111111111111111111111111111",
"rentEpoch": 2,
"lamports": 998763433,
"owner": "2WRuhE4GJFoE23DYzp2ij6ZnuQ8p9mJeU6gDgfsjR4or",
"rentEpoch": 18446744073709551615,
"space": 0
}
]
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getProgramAccounts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ The resultant response array will contain:
\(and is strictly read-only\)
- `rentEpoch: <u64>` - the epoch at which this account will next owe rent, as
u64
- `size: <u64>` - the data size of the account
- `space: <u64>` - the data size of the account

</DocLeftSide>

Expand Down
2 changes: 1 addition & 1 deletion docs/rpc/http/getTokenAccountsByDelegate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ JSON objects, which will contain:
(and is strictly read-only\)
- `rentEpoch: <u64>` - the epoch at which this account will next owe rent, as
u64
- `size: <u64>` - the data size of the account
- `space: <u64>` - the data size of the account

When the data is requested with the `jsonParsed` encoding a format similar to
that of the [Token Balances Structure](/docs/rpc/json-structures#token-balances)
Expand Down
29 changes: 13 additions & 16 deletions docs/rpc/http/getTokenAccountsByOwner.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ JSON objects, which will contain:
\(and is strictly read-only\)
- `rentEpoch: <u64>` - the epoch at which this account will next owe rent, as
u64
- `size: <u64>` - the data size of the account
- `space: <u64>` - the data size of the account

When the data is requested with the `jsonParsed` encoding a format similar to
that of the [Token Balances Structure](/docs/rpc/json-structures#token-balances)
Expand Down Expand Up @@ -137,28 +137,24 @@ curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -

```json
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"context": {
"apiVersion": "2.0.8",
"slot": 329669901
},
"context": { "apiVersion": "2.0.15", "slot": 341197933 },
"value": [
{
"account": {
"data": {
"parsed": {
"info": {
"isNative": false,
"mint": "BejB75Gmq8btLboHx7yffWcurHVBv5xvKcnY1fBYxnvf",
"mint": "2cHr7QS3xfuSV8wdxo3ztuF4xbiarF6Nrgx3qpx3HzXR",
"owner": "A1TMhSGzQxMr1TboBKtgixKz1sS6REASMxPo1qsyTSJd",
"state": "initialized",
"tokenAmount": {
"amount": "10000000000000",
"decimals": 9,
"uiAmount": 10000,
"uiAmountString": "10000"
"amount": "420000000000000",
"decimals": 6,
"uiAmount": 420000000.0,
"uiAmountString": "420000000"
}
},
"type": "account"
Expand All @@ -172,21 +168,21 @@ curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -
"rentEpoch": 18446744073709551615,
"space": 165
},
"pubkey": "5HvuXcy57o41qtGBBJM7dRN9DS6G3jd9KEhHt4eYqJmB"
"pubkey": "BGocb4GEpbTFm8UFV2VsDSaBXHELPfAXrvd4vtt8QWrA"
},
{
"account": {
"data": {
"parsed": {
"info": {
"isNative": false,
"mint": "FSX34rYUJ4zfdD7z4p3L1Fd1pGiiErusaSNTfgKqhep6",
"mint": "4KVSsAtsG8JByKfB2jYWgGwvVR9WcBSUfsqpTSL9c3Jr",
"owner": "A1TMhSGzQxMr1TboBKtgixKz1sS6REASMxPo1qsyTSJd",
"state": "initialized",
"tokenAmount": {
"amount": "10000000000000",
"decimals": 9,
"uiAmount": 10000,
"uiAmount": 10000.0,
"uiAmountString": "10000"
}
},
Expand All @@ -201,10 +197,11 @@ curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -
"rentEpoch": 18446744073709551615,
"space": 165
},
"pubkey": "HvTGvCP4tg2wVdFtqZCTdMPHDXmkYwNAxaTBCHabqh2X"
"pubkey": "9PwCPoWJ75LSgZeGMubXBdufYMVd66HrcF78QzW6ZHkV"
}
]
}
},
"id": 1
}
```

Expand Down