Skip to content
🎉 Welcome! Translations are currently experimental. | 翻訳は現在実験的です。 | 翻译目前处于实验阶段。
Click here to submit feedback! | ここをクリックしてフィードバックを送信してください! | 点击这里提交反馈!
1.2.0
OAS 3.0.0

Aptos Node API

Client Libraries
Shell
Ruby
Node.js
PHP
Python
More

Get account

Path Parameters
  • address
    required
    string hex
    Example0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Query Parameters
  • ledger_version
    string uint64
    Example32425224034
Responses
  • 200
    application/json
  • 400
    application/json
  • 403
    application/json
  • 404
    application/json
  • 410
    application/json
  • 500
    application/json
  • 503
    application/json
GET/accounts/{address}
Shell cURL
curl --request GET \
  --url https://api.mainnet.aptoslabs.com/v1/accounts/0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
{
  "sequence_number": "32425224034",
  "authentication_key": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1 "
}

Get account resources

Path Parameters
  • address
    required
    string hex
    Example0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Query Parameters
  • ledger_version
    string uint64
    Example32425224034
  • start
    string
    Example0000000000000000000000000000000000000000000000000000000000000000012f0000000000000000000000000000000000000000000000000000000000000000010d7374616b696e675f70726f7879
  • limit
    integer uint16
Responses
  • 200
    application/json
  • 400
    application/json
  • 403
    application/json
  • 404
    application/json
  • 410
    application/json
  • 500
    application/json
  • 503
    application/json
GET/accounts/{address}/resources
Shell cURL
curl --request GET \
  --url https://api.mainnet.aptoslabs.com/v1/accounts/0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1 /resources
[
  {
    "type": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>",
    "data": {
      "authentication_key": "0x0000000000000000000000000000000000000000000000000000000000000001",
      "coin_register_events": {
        "counter": "0",
        "guid": {
          "id": {
            "addr": "0x1",
            "creation_num": "0"
          }
        }
      },
      "self_address": "0x1",
      "sequence_number": "0"
    }
  }
]

Get account resources

Path Parameters
  • address
    required
    string hex
    Example0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
  • asset_type
    required
    string hex
    Example0x1::aptos_coin::AptosCoin
Query Parameters
  • ledger_version
    string uint64
    Example32425224034
Responses
  • 200
    application/json
  • 400
    application/json
  • 403
    application/json
  • 404
    application/json
  • 410
    application/json
  • 500
    application/json
  • 503
    application/json
GET/accounts/{address}/balance/{asset_type}
Shell cURL
curl --request GET \
  --url https://api.mainnet.aptoslabs.com/v1/accounts/0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1 /balance/0x1::aptos_coin::AptosCoin
1

Get account modules

Path Parameters
  • address
    required
    string hex
    Example0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
Query Parameters
  • ledger_version
    string uint64
    Example32425224034
  • start
    string
    Example0000000000000000000000000000000000000000000000000000000000000000012f0000000000000000000000000000000000000000000000000000000000000000010d7374616b696e675f70726f7879
  • limit
    integer uint16
Responses
  • 200
    application/json
  • 400
    application/json
  • 403
    application/json
  • 404
    application/json
  • 410
    application/json
  • 500
    application/json
  • 503
    application/json
GET/accounts/{address}/modules
Shell cURL
curl --request GET \
  --url https://api.mainnet.aptoslabs.com/v1/accounts/0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1 /modules
[
  {
    "bytecode": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1 ",
    "abi": {
      "address": "0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1 ",
      "name": "…",
      "friends": [
        "0x1::aptos_coin"
      ],
      "exposed_functions": [
        {
          "name": "…",
          "visibility": "private",
          "is_entry": true,
          "is_view": true,
          "generic_type_params": [
            null
          ],
          "params": [
            null
          ],
          "return": [
            null
          ]
        }
      ],
      "structs": [
        {
          "name": "…",
          "is_native": true,
          "is_event": true,
          "abilities": [
            null
          ],
          "generic_type_params": [
            null
          ],
          "fields": [
            null
          ]
        }
      ]
    }
  }
]

Get account resource

Path Parameters
  • address
    required
    string hex
    Example0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1
  • resource_type
    required
    string ^0x[0-9a-zA-Z:_<>]+$
    Example0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>
Query Parameters
  • ledger_version
    string uint64
    Example32425224034
Responses
  • 200
    application/json
  • 400
    application/json
  • 403
    application/json
  • 404
    application/json
  • 410
    application/json
  • 500
    application/json
  • 503
    application/json
GET/accounts/{address}/resource/{resource_type}
Shell cURL
curl --request GET \
  --url https://api.mainnet.aptoslabs.com/v1/accounts/0x88fbd33f54e1126269769780feb24480428179f552e2313fbe571b72e62a1ca1 /resource/0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>
{
  "type": "0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>",
  "data": {
    "authentication_key": "0x0000000000000000000000000000000000000000000000000000000000000001",
    "coin_register_events": {
      "counter": "0",
      "guid": {
        "id": {
          "addr": "0x1",
          "creation_num": "0"
        }
      }
    },
    "self_address": "0x1",
    "sequence_number": "0"
  }
}

Models

ledger_version
Value
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
    APIsFullnode REST API Guide