GET
/
accounts
/
{address}
/
modules
curl --request GET \
  --url https://aptos-mainnet.s.chainbase.online/{api-key}/v1/accounts/{address}/modules
[
  {
    "bytecode": "0xc739507214d0e1bf9795485299d709e00024e92f7c0d055a4c2c39717882bdfd",
    "abi": {
      "address": "0xc739507214d0e1bf9795485299d709e00024e92f7c0d055a4c2c39717882bdfd",
      "name": "<string>",
      "friends": [
        "0x1::aptos_coin"
      ],
      "exposed_functions": [
        {
          "name": "<string>",
          "visibility": "private",
          "is_entry": true,
          "generic_type_params": [
            {
              "constraints": [
                "<string>"
              ]
            }
          ],
          "params": [
            "<string>"
          ],
          "return": [
            "<string>"
          ]
        }
      ],
      "structs": [
        {
          "name": "<string>",
          "is_native": true,
          "abilities": [
            "<string>"
          ],
          "generic_type_params": [
            {
              "constraints": [
                "<string>"
              ]
            }
          ],
          "fields": [
            {
              "name": "<string>",
              "type": "<string>"
            }
          ]
        }
      ]
    }
  }
]

Path Parameters

address
string
required

Address of account with or without a 0x prefix

Example:

"0xc739507214d0e1bf9795485299d709e00024e92f7c0d055a4c2c39717882bdfd"

Query Parameters

ledger_version
string

Ledger version to get state of account

If not provided, it will be the latest version

Example:

"32425224034"

start
string

Cursor specifying where to start for pagination

This cursor cannot be derived manually client-side. Instead, you must call this endpoint once without this query parameter specified, and then use the cursor returned in the X-Aptos-Cursor header in the response.

Example:

"0000000000000000000000000000000000000000000000000000000000000000012f0000000000000000000000000000000000000000000000000000000000000000010d7374616b696e675f70726f7879"

limit
integer

Max number of account modules to retrieve

If not provided, defaults to default page size.

Response

200
application/json
bytecode
string
required

All bytes (Vec<u8>) data is represented as hex-encoded string prefixed with 0x and fulfilled with two hex digits per byte.

Unlike the Address type, HexEncodedBytes will not trim any zeros.

Example:

"0xc739507214d0e1bf9795485299d709e00024e92f7c0d055a4c2c39717882bdfd"

abi
object

A Move module