Skip to content

Update EXPERIMENTAL_changes RCP method naming in the docs #2591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion docs/integrations/balance.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ https://testnet.nearblocks.io/txns/4To336bYcoGc3LMucJPMk6fMk5suKfCrdNotrRtTxqDy

```bash
http post https://rpc.testnet.near.org jsonrpc=2.0 id=dontcare \
method=EXPERIMENTAL_changes \
method=changes \
'params:={
"block_id": "CJ24svU3C9FaULVjcNVnWuVZjK6mNaQ8p6AMyUDMqB37",
"changes_type": "account_changes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import ErrorSchemaTable from './error-schema-table.mdx';
Returns changes to <strong>all</strong> access keys of a specific block.
Multiple accounts can be quereied by passing an array of `account_ids`.

- method: `EXPERIMENTAL_changes`
- method: `changes`
- params:
- `changes_type`: `all_access_key_changes`
- `account_ids`: `[ "example.testnet", "example2.testnet"]`
Expand Down Expand Up @@ -47,6 +47,6 @@ Example:
<ErrorSchemaDescription />

Here is the exhaustive list of the error variants that can be returned
by `EXPERIMENTAL_changes` method:
by `changes` method:

<ErrorSchemaTable />
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
http POST https://archival-rpc.testnet.near.org \
jsonrpc=2.0 \
id=dontcare \
method=EXPERIMENTAL_changes \
method=changes \
params:='{
"changes_type": "all_access_key_changes",
"account_ids": ["account.rpc-examples.testnet"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "EXPERIMENTAL_changes",
"method": "changes",
"params": {
"changes_type": "all_access_key_changes",
"account_ids": ["account.rpc-examples.testnet"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import ErrorSchemaTable from './error-schema-table.mdx';
Returns individual access key changes in a specific block. You can query multiple
keys by passing an array of objects containing the `account_id` and `public_key`.

- method: `EXPERIMENTAL_changes`
- method: `changes`
- params:
- `changes_type`: `single_access_key_changes`
- `keys`: `[{ account_id, public_key }]`
Expand Down Expand Up @@ -47,6 +47,6 @@ Example:
<ErrorSchemaDescription />

Here is the exhaustive list of the error variants that can be returned
by `EXPERIMENTAL_changes_in_block` method:
by `changes` method:

<ErrorSchemaTable />
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
http POST https://archival-rpc.testnet.near.org \
jsonrpc=2.0 \
id=dontcare \
method=EXPERIMENTAL_changes \
method=changes \
params:='{
"changes_type": "single_access_key_changes",
"keys": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "EXPERIMENTAL_changes",
"method": "changes",
"params": {
"changes_type": "single_access_key_changes",
"keys": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import ErrorSchemaDescription from '../../_general/error-schema-description.mdx'

> Returns account changes from transactions in a given account.

- method: `EXPERIMENTAL_changes`
- method: `changes`
- params:
- `changes_type`: `account_changes`
- `account_ids`: [`"example.testnet"`]
Expand Down Expand Up @@ -46,6 +46,6 @@ Example:
<ErrorSchemaDescription />

Here is the exhaustive list of the error variants that can be returned by
`EXPERIMENTAL_changes` method:
`changes` method:

<ErrorSchemaTable />
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
http POST https://archival-rpc.testnet.near.org \
jsonrpc=2.0 \
id=dontcare \
method=EXPERIMENTAL_changes \
method=changes \
params:='{
"changes_type": "account_changes",
"account_ids": ["contract.rpc-examples.testnet"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "EXPERIMENTAL_changes",
"method": "changes",
"params": {
"changes_type": "account_changes",
"account_ids": ["contract.rpc-examples.testnet"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import ErrorSchemaDescription from '../../_general/error-schema-description.mdx'
> Returns code changes made when deploying a contract. Change is returned is a
> base64 encoded WASM file.

- method: `EXPERIMENTAL_changes`
- method: `changes`
- params:
- `changes_type`: `contract_code_changes`
- `account_ids`: `["example.testnet"]`,
Expand Down Expand Up @@ -46,6 +46,6 @@ Example:

<ErrorSchemaDescription />

Here is the exhaustive list of the error variants that can be returned by `EXPERIMENTAL_changes` method:
Here is the exhaustive list of the error variants that can be returned by `changes` method:

<ErrorSchemaTable />
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
http POST https://archival-rpc.testnet.near.org \
jsonrpc=2.0 \
id=dontcare \
method=EXPERIMENTAL_changes \
method=changes \
params:='{
"changes_type": "contract_code_changes",
"account_ids": ["contract.rpc-examples.testnet"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "EXPERIMENTAL_changes",
"method": "changes",
"params": {
"changes_type": "contract_code_changes",
"account_ids": ["contract.rpc-examples.testnet"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import ErrorSchemaDescription from '../../_general/error-schema-description.mdx'
> (encoded to base64). Pass an empty string for this param if you would like
> to return all state changes.

- method: `EXPERIMENTAL_changes`
- method: `changes`
- params:
- `changes_type`: `data_changes`
- `account_ids`: `["example.testnet"]`,
Expand Down Expand Up @@ -48,6 +48,6 @@ Example:

<ErrorSchemaDescription />

Here is the exhaustive list of the error variants that can be returned by `EXPERIMENTAL_changes` method:
Here is the exhaustive list of the error variants that can be returned by `changes` method:

<ErrorSchemaTable />
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
http POST https://archival-rpc.testnet.near.org \
jsonrpc=2.0 \
id=dontcare \
method=EXPERIMENTAL_changes \
method=changes \
params:='{
"changes_type": "data_changes",
"account_ids": ["contract.rpc-examples.testnet"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "EXPERIMENTAL_changes",
"method": "changes",
"params": {
"changes_type": "data_changes",
"account_ids": ["contract.rpc-examples.testnet"],
Expand Down
Loading