1.2.0
OAS 3.0.0
Aptos Node API
The Aptos Node API is a RESTful API for client applications to interact with the Aptos blockchain.
Base URL
Client Libraries
Shell
Ruby
Node.js
PHP
Python
More
cURL Shell
Accounts
Access to accounts, resources, and modules
Get account
Return the authentication key and the sequence number for an account address. Optionally, a ledger version can be specified. If the ledger version is not specified in the request, the latest ledger version is used.
Path Parameters
- addressrequiredstring hex
Address of account with or without a
0x
prefixExample0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Query Parameters
- ledger_versionstring uint64
Ledger version to get state of account
If not provided, it will be the latest version
Example32425224034
Responses
- 200application/json
- 400application/json
- 403application/json
- 404application/json
- 410application/json
- 500application/json
- 503application/json
GET/accounts/{address}
Shell cURL
curl --request GET \
--url https://api.testnet.aptoslabs.com/v1/accounts/0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
{
"sequence_number": "32425224034",
"authentication_key": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1 "
}
Models
GET
Request
address Required |
Headers
Content-Type | application/json | |
Query Parameters
ledger_version |
Body
Response
.,,uod8B8bou,,. ..,uod8BBBBBBBBBBBBBBBBRPFT?l!i:. ||||||||||||||!?TFPRBBBBBBBBBBBBBBB8m=, |||| '""^^!!||||||||||TFPRBBBVT!:...! |||| '""^^!!|||||?!:.......! |||| ||||.........! |||| ||||.........! |||| ||||.........! |||| ||||.........! |||| ||||.........! |||| ||||.........! ||||, ||||.........` |||||!!-._ ||||.......;. ':!|||||||||!!-._ ||||.....bBBBBWdou,. bBBBBB86foi!|||||||!!-..:|||!..bBBBBBBBBBBBBBBY! ::!?TFPRBBBBBB86foi!||||||||!!bBBBBBBBBBBBBBBY..! :::::::::!?TFPRBBBBBB86ftiaabBBBBBBBBBBBBBBY....! :::;`"^!:;::::::!?TFPRBBBBBBBBBBBBBBBBBBBY......! ;::::::...''^::::::::::!?TFPRBBBBBBBBBBY........! .ob86foi;::::::::::::::::::::::::!?TFPRBY..........` .b888888888886foi;:::::::::::::::::::::::..........` .b888888888888888888886foi;::::::::::::::::...........b888888888888888888888888888886foi;:::::::::......`!Tf998888888888888888888888888888888886foi;:::....` '"^!|Tf9988888888888888888888888888888888!::..` '"^!|Tf998888888888888888888888889!! '` '"^!|Tf9988888888888888888!!` iBBbo. '"^!|Tf998888888889!` WBBBBbo. '"^!|Tf9989!` YBBBP^' '"^!` `
⌃ ↵
Last updated on