Accounts
Accounts Api
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
GET /rpc/v1/accounts/{address} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Account information retrieved successfully
No content
List of finalized coin withdraw/deposit transactions relevant to the move account. Return max 100 transactions per request. It includes both transactions sent from and received by the account.
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Maximum number of items to return. Default is 20.
The cursor that the search should start from. The cursor for a given transaction can be derived by adding its index (where indexes start from zero) in the block in which it became finalized to the timestamp of the block.
During a paginated query, the cursor returned in the previous page should be used as the starting cursor of the next page.
If provided, return :count
of transactions starting from this cursor in ascending order.
If not provided, return :count
of most recent transactions in descending order.
GET /rpc/v1/accounts/{address}/coin_transactions HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
List of finalized transactions sent from and received by the move account.
{
"record": [
{
"authenticator": {},
"block_header": null,
"hash": "text",
"header": {
"chain_id": 1,
"expiration_timestamp": {
"timestamp": 1
},
"sender": "text",
"sequence_number": 1,
"gas_unit_price": 1,
"max_gas_amount": 1
},
"payload": {},
"output": {
"Dkg": "Success"
},
"status": "Success"
}
],
"cursor": 1
}
Get account modules by address
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Maximum number of items to return. Default is 20.
Cursor specifying where to start for pagination. Use the cursor returned by the API when making the next request.
GET /rpc/v1/accounts/{address}/modules HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Account module list
{
"Resources": {
"resource": [
[]
],
"cursor": [
1
]
}
}
Retrieves an individual module from a given account.
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Name of module to retrieve e.g. coin
GET /rpc/v1/accounts/{address}/modules/{module_name} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
View account module by Move module name
No content
Get account resources by address
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Maximum number of items to return. Default is 20.
Cursor specifying where to start for pagination. Use the cursor returned by the API when making the next request.
GET /rpc/v1/accounts/{address}/resources HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Account resource list
{
"Resources": {
"resource": [
[]
],
"cursor": [
1
]
}
}
View account resource by Move type
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Name of struct to retrieve e.g. 0x1::account::Account
0x1::coin::CoinStore<0x1::supra_coin::SupraCoin>
Pattern: ^0x[0-9a-zA-Z:_<>]+$
GET /rpc/v1/accounts/{address}/resources/{resource_type} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
View account resource by Move Struct type
No content
List of finalized transactions sent by the move account. Return max 100 transactions per request.
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Maximum number of items to return. Default is 20.
Starting sequence number.
If provided, return :count
of transactions starting from this sequence number in ascending order.
If not provided, return :count
of most recent transactions in descending order.
GET /rpc/v1/accounts/{address}/transactions HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
List of transactions from the move account.
{
"record": [
{
"authenticator": {},
"block_header": null,
"hash": "text",
"header": {
"chain_id": 1,
"expiration_timestamp": {
"timestamp": 1
},
"sender": "text",
"sequence_number": 1,
"gas_unit_price": 1,
"max_gas_amount": 1
},
"payload": {},
"output": {
"Dkg": "Success"
},
"status": "Success"
}
]
}
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
GET /rpc/v2/accounts/{address} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Account information retrieved successfully
{
"sequence_number": 1,
"authentication_key": "text"
}
List of finalized coin withdraw/deposit transactions relevant to the move account. Return max 100 transactions per request. It includes both transactions sent from and received by the account.
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Maximum number of items to return. Default is 20.
The cursor that the search should start from. The cursor for a given transaction can be derived by adding its index (where indexes start from zero) in the block in which it became finalized to the timestamp of the block.
During a paginated query, the cursor returned in the previous page should be used as the starting cursor of the next page.
If provided, return :count
of transactions starting from this cursor in ascending order.
If not provided, return :count
of most recent transactions in descending order.
GET /rpc/v2/accounts/{address}/coin_transactions HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
List of finalized transactions sent from and received by the move account.
{
"record": [
{
"authenticator": {},
"block_header": null,
"hash": "text",
"header": {
"chain_id": 1,
"expiration_timestamp": {
"timestamp": 1
},
"sender": "text",
"sequence_number": 1,
"gas_unit_price": 1,
"max_gas_amount": 1
},
"payload": {},
"output": {
"Dkg": "Success"
},
"status": "Success"
}
],
"cursor": 1
}
Retrieves all account modules' bytecode for a given account.
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Maximum number of items to return. Default is 20.
Cursor specifying where to start for pagination. Use the cursor returned by the API when making the next request.
GET /rpc/v2/accounts/{address}/modules HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
account module list
{
"modules": [
{
"bytecode": "text",
"abi": {
"address": "text",
"name": {},
"friends": {},
"exposed_functions": {},
"structs": {}
}
}
],
"cursor": null
}
Retrieves an individual module from a given account.
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Name of module to retrieve e.g. coin
GET /rpc/v2/accounts/{address}/modules/{module_name} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
View account module by Move module name
{
"bytecode": "text",
"abi": {
"address": "text",
"name": {},
"friends": {},
"exposed_functions": {},
"structs": {}
}
}
Get account resources by address
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Maximum number of items to return. Default is 20.
Cursor specifying where to start for pagination. Use the cursor returned by the API when making the next request.
GET /rpc/v2/accounts/{address}/resources HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Account resource list
{
"resources": [
{
"type": "text",
"data": {}
}
],
"cursor": "text"
}
View account resource by Move type
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Name of struct to retrieve e.g. 0x1::account::Account
0x1::coin::CoinStore<0x1::supra_coin::SupraCoin>
Pattern: ^0x[0-9a-zA-Z:_<>]+$
GET /rpc/v2/accounts/{address}/resources/{resource_type} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
View account resource by Move Struct type
{
"type": "text",
"data": {}
}
List of finalized transactions sent by the move account. Return max 100 transactions per request.
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Maximum number of items to return. Default is 20.
Starting sequence number.
If provided, return :count
of transactions starting from this sequence number in ascending order.
If not provided, return :count
of most recent transactions in descending order.
GET /rpc/v2/accounts/{address}/transactions HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
List of transactions from the move account.
{
"record": [
{
"authenticator": {},
"block_header": null,
"hash": "text",
"header": {
"chain_id": 1,
"expiration_timestamp": {
"timestamp": 1
},
"sender": "text",
"sequence_number": 1,
"gas_unit_price": 1,
"max_gas_amount": 1
},
"payload": {},
"output": {
"Dkg": "Success"
},
"status": "Success"
}
]
}
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
GET /rpc/v3/accounts/{address} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Account information retrieved successfully
{
"sequence_number": 1,
"authentication_key": "text"
}
List of finalized automated transactions based on the automation tasks registered by the move account. Return max 100 transactions per request.
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Maximum number of items to return. Default is 20.
Starting block height (inclusive). Optional.
The block height at which to start lookup for transactions.
If provided, returns :count
of transactions starting from it in the specified order.
For order see :ascending
flag.
Note: If a :cursor
is specified then this field will be ignored.
The cursor (exclusive) to start the query from. Optional.
If provided, returns :count
of transactions starting from this cursor in the specified order.
For order see :ascending
flag.
If not specified, the lookup will be done based on the :block_height
parameter value.
Note: If both :cursor
and :block_height
are specified then :cursor
has precedence.
Flag indicating order of lookup.
Defaults to false
; i.e. transactions are returned in descending order of their execution.
If true
, transactions are returned in ascending order of their execution.
GET /rpc/v3/accounts/{address}/automated_transactions HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
List of automated transactions of the move account.
[
{
"authenticator": {},
"block_header": null,
"hash": "text",
"header": {
"chain_id": 1,
"expiration_timestamp": {
"timestamp": 1
},
"sender": "text",
"sequence_number": 1,
"gas_unit_price": 1,
"max_gas_amount": 1
},
"payload": {},
"output": {
"Dkg": "Success"
},
"status": "Success",
"txn_type": "user"
}
]
List of finalized coin withdraw/deposit transactions relevant to the move account. Return max 100 transactions per request.
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Maximum number of items to return. Default is 20.
The cursor (exclusive) that the search should start from.
If provided, returns :count
of transactions starting from this cursor in the specified order.
For order see :ascending
flag.
Flag indicating order of lookup.
Defaults to false
i.e. transactions are returned in descending order of their execution.
If true
, transactions are returned in ascending order of their execution.
Type of the transaction to be queried.
GET /rpc/v3/accounts/{address}/coin_transactions HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
List of finalized transactions sent from and received by the move account.
[
{
"authenticator": {},
"block_header": null,
"hash": "text",
"header": {
"chain_id": 1,
"expiration_timestamp": {
"timestamp": 1
},
"sender": "text",
"sequence_number": 1,
"gas_unit_price": 1,
"max_gas_amount": 1
},
"payload": {},
"output": {
"Dkg": "Success"
},
"status": "Success",
"txn_type": "user"
}
]
Retrieves all account modules' bytecode for a given account.
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Maximum number of items to return. Default is 20.
Cursor specifying where to start for pagination. Use the cursor returned by the API when making the next request.
GET /rpc/v3/accounts/{address}/modules HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Account module list
[
{
"bytecode": "text",
"abi": {
"address": "text",
"name": {},
"friends": {},
"exposed_functions": {},
"structs": {}
}
}
]
Retrieves an individual module from a given account.
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Name of module to retrieve e.g. coin
GET /rpc/v3/accounts/{address}/modules/{module_name} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
View account module by Move module name
{
"bytecode": "text",
"abi": {
"address": "text",
"name": {},
"friends": {},
"exposed_functions": {},
"structs": {}
}
}
Retrieves all account resources for a given account.
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Maximum number of items to return. Default is 20.
Cursor specifying where to start for pagination. Use the cursor returned by the API when making the next request.
GET /rpc/v3/accounts/{address}/resources HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
Account resource list
[
{
"type": "text",
"data": {}
}
]
View account resource by Move type
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Name of struct to retrieve e.g. 0x1::account::Account
0x1::coin::CoinStore<0x1::supra_coin::SupraCoin>
Pattern: ^0x[0-9a-zA-Z:_<>]+$
GET /rpc/v3/accounts/{address}/resources/{resource_type} HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
View account resource by Move Struct type
{
"type": "text",
"data": {}
}
List of finalized transactions sent by the move account. Return max 100 transactions per request.
Address of account with or without a 0x prefix
0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Maximum number of items to return. Default is 20.
Starting sequence number.
If provided, return :count
of transactions starting from this sequence number (inclusive)
in the specified order.
For order see :ascending
flag.
Flag indicating order of lookup.
Defaults to false
; i.e. the transactions are returned in descending order by sequence number.
If true
, transactions are returned in ascending order by sequence number.
GET /rpc/v3/accounts/{address}/transactions HTTP/1.1
Host: rpc-mainnet.supra.com
Accept: */*
List of transactions from the move account.
[
{
"authenticator": {},
"block_header": null,
"hash": "text",
"header": {
"chain_id": 1,
"expiration_timestamp": {
"timestamp": 1
},
"sender": "text",
"sequence_number": 1,
"gas_unit_price": 1,
"max_gas_amount": 1
},
"payload": {},
"output": {
"Dkg": "Success"
},
"status": "Success",
"txn_type": "user"
}
]