GET
/
accounts
/
{address}
/
module
/
{module_name}
Get account module
curl --request GET \
  --url https://api.us1.shinami.com/aptos/node/v1/accounts/{address}/module/{module_name} \
  --header 'Authorization: Bearer <token>'
{
  "bytecode": 6.195948399647823e+76,
  "abi": {
    "address": 6.195948399647823e+76,
    "name": "<string>",
    "friends": [
      "0x1::aptos_coin"
    ],
    "exposed_functions": [
      {
        "name": "<string>",
        "visibility": "private",
        "is_entry": true,
        "is_view": true,
        "generic_type_params": [
          {
            "constraints": [
              "<string>"
            ]
          }
        ],
        "params": [
          "<string>"
        ],
        "return": [
          "<string>"
        ]
      }
    ],
    "structs": [
      {
        "name": "<string>",
        "is_native": true,
        "is_event": true,
        "abilities": [
          "<string>"
        ],
        "generic_type_params": [
          {
            "constraints": [
              "<string>"
            ]
          }
        ],
        "fields": [
          {
            "name": "<string>",
            "type": "<string>"
          }
        ]
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Authorization: Bearer SHINAMI_ACCESS_KEY.

Path Parameters

address
string<hex>
required

Address of account with or without a 0x prefix

Example:

6.195948399647823e+76

module_name
string
required

Name of module to retrieve e.g. coin

Query Parameters

ledger_version
string<uint64>

Ledger version to get state of account

If not provided, it will be the latest version

Example:

"32425224034"

Response

Move module bytecode along with it's ABI

bytecode
string<hex>
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:

6.195948399647823e+76

abi
object

A Move module