Accounts

Get Metadium Balance for a Single Address

Returns the Metadium balance of a given address.

POST https://testnetapi.metadium.com/v1/accounts/balance
api-key: Your API Key
Content-Type: application/json

{
    "addresses" : [
                "0xcB24fBed8597dd1ff71daBB56b939Ec440a5041E",
                "0xa5eb6c837FA2123b8d3749F85061Efd7471E9352"
    ]
}

Query Parameters

Parameter

Description

addresses

type: List<String>

value: Address of account (min: 1, max: 20)

required: true


Get a list of 'Normal' Transactions by Address.

Returns the list of transactions performed by an address, with optional pagination.

GET https://testnetapi.metadium.com/v1/accounts/{address_hash}/transactions
api-key: Your API Key

Query Parameters

Parameter

Description

address_hash

type: String

value: Address (sender/receiver/contract)

required: true

limit

type: Integer

value: Maximum number of record will retrieve (Default: 50, Max: 1000)

required: false

offset

type: Integer

value: Start retrieve record (Default: 0)

required: false

startBlock

type: String

value: Start block (Default: null)

required: false

endBlock

type: String

value: End block (Default: null)

required: false

input

type: Boolean

value: Include input data (true/false[Default])

required: false

simple

type: Boolean

value: Include data simple (true/false[Default])

required: false

condition

type: String

value: Address condition (all[Default]/to/from/contract)

required: false


Get a list of 'Internal' Transactions by Address

Returns the list of internal transactions performed by an address, with optional pagination.

GET https://testnetapi.metadium.com/v1/accounts/{address_hash}/internal-transactions
api-key: Your API Key

Query Parameters

Parameter

Description

address_hash

type: String

value: Address (sender/receiver/contract)

required: true

limit

type: Integer

value: Maximum number of record will retrieve (Default: 50, Max: 1000)

required: false

offset

type: Integer

value: Start retrieve record (Default: 0)

required: false

startBlock

type: String

value: Start block (Default: null)

required: false

endBlock

type: String

value: End block (Default: null)

required: false

input

type: Boolean

value: Include input data (true/false[Default])

required: false


Get a list of 'MRC20 - Token Transfer Events' by Address

Returns the list of MRC-20 tokens transferred by an address, with optional filtering by token contract.

GET https://testnetapi.metadium.com/v1/accounts/{address_hash}/token-transfer/mrc20
api-key: Your API Key

Query Parameters

Parameter

Description

address_hash

type: String

value: Address (sender/receiver/contract) or Transaction Address

required: true

limit

type: Integer

value: Maximum number of record will retrieve (Default: 50, Max: 1000)

required: false

offset

type: Integer

value: Start retrieve record (Default: 0)

required: false

startBlock

type: String

value: Start block (Default: null)

required: false

endBlock

type: String

value: End block (Default: null)

required: false


Get a list of 'MRC721 - Token Transfer Events' by Address

Returns the list of MRC-721 ( NFT ) tokens transferred by an address, with optional filtering by token contract.

GET https://testnetapi.metadium.com/v1/accounts/{address_hash}/token-transfer/mrc721
api-key: Your API Key

Query Parameters

Parameter

Description

address_hash

type: String

value: Address (sender/receiver/contract) or Transaction Address

required: true

limit

type: Integer

value: Maximum number of record will retrieve (Default: 50, Max: 1000)

required: false

offset

type: Integer

value: Start retrieve record (Default: 0)

required: false

startBlock

type: String

value: Start block (Default: null)

required: false

endBlock

type: String

value: End block (Default: null)

required: false


Get MRC20/MRC721 Token List for a Single Address

Returns the list of MRC-20/MRC-721 tokens held in a single address.

GET https://testnetapi.metadium.com/v1/accounts/{address_hash}/tokens
api-key: Your API Key

Query Parameters

Parameter

Description

address_hash

type: String

value: Address of token holder

required: true

limit

type: Integer

value: Maximum number of record will retrieve (Default: 50, Max: 1000)

required: false

offset

type: Integer

value: Start retrieve record (Default: 0)

required: false


Get MRC20 Token List for a Single Address

Returns the list of MRC-20 tokens held in a single address.

GET https://testnetapi.metadium.com/v1/accounts/{address_hash}/tokens/mrc20
api-key: Your API Key

Query Parameters

Parameter

Description

address_hash

type: String

value: Address of token holder

required: true

limit

type: Integer

value: Maximum number of record will retrieve (Default: 50, Max: 1000)

required: false

offset

type: Integer

value: Start retrieve record (Default: 0)

required: false


Get MRC721 Token List for a Single Address

Returns the list of MRC-721 tokens held in a single address.

GET https://testnetapi.metadium.com/v1/accounts/{address_hash}/tokens/mrc721
api-key: Your API Key

Query Parameters

Parameter

Description

address_hash

type: String

value: Address of token holder

required: true

limit

type: Integer

value: Maximum number of record will retrieve (Default: 50, Max: 1000)

required: false

offset

type: Integer

value: Start retrieve record (Default: 0)

required: false


Get MRC721 Token Inventory of a Specific MRC721 Contract

Returns the MRC-721 token inventory of a specific MRC721 contract and a list of specific tokens owned.

GET https://testnetapi.metadium.com/v1/accounts/{contract_address}/tokens/inventory
api-key: Your API Key

Query Parameters

Parameter

Description

contract_address

type: String

value: Contract address requiring inventory list

required: true

token_address

type: String

value: Specific token address

required: false

limit

type: Integer

value: Maximum number of record will retrieve (Default: 50, Max: 1000)

required: false

offset

type: Integer

value: Start retrieve record (Default: 0)

required: false


Get list of Blocks Mined by address

Returns the list of blocks created by the miner.

GET https://testnetapi.metadium.com/v1/accounts/{address_hash}/mined-blocks
api-key: Your API Key

Query Parameters

Parameter

Description

address_hash

type: String

value: Address of miner

required: true

limit

type: Integer

value: Maximum number of record will retrieve (Default: 50, Max: 1000)

required: false

offset

type: Integer

value: Start retrieve record (Default: 0)

required: false

Last updated