Merchant Gas Wallets

Use this endpoint to obtain information about the gas wallets currently configured for your merchant. Gas wallets are used to compensate for the network gas costs for various operations on a blockchain such as processing of payments, executing withdrawals and so on.

The Gas Wallet object

The MerchantGasWallet object includes all relevant details about specific merchant's gas wallet.

This object might contain parameters and values not documented in the API Reference, which should be disregarded.

Properties

  • Name
    address
    Type
    string
    Description

    Address of the gas wallet on the blockchain.

  • Name
    blockchain
    Type
    string
    Description

    Blockchain network code for this wallet.

  • Name
    isOutOfService
    Type
    boolean
    Description

    Indicates whether the gas wallet has fatal issues and stopped operations. Contact the support if true.

  • Name
    nativeBalance
    Type
    string
    Description

    Balance in native tokens in a whole number format (no decimal place).


GET/v1/merchants/{merchantId}/gas-wallets

Retrieve gas wallets

This endpoint allows you to retrieve gas wallet associated with this merchant.

Request

GET
/v1/merchants/{merchantId}/gas-wallets
curl https://partner-api.smartypay.io/v1/merchants/FdDQBuaqXoReYAxf9VtEBq/gas-wallets \
  --user API_KEY:SECRET

Response

{
    "gasWallets": [
        {
            "address": "0x6b9Ac38D27c068Eb633F6C779CbF0C9d42d03753",
            "blockchain": "BinanceTestNet",
            "isOutOfService": false,
            "nativeBalance": "254803120000000000"
        },
        {
            "address": "0xcE4B2b1ef2973fD006319d26a50da6AD71C60dC9",
            "blockchain": "BinanceTestNet",
            "isOutOfService": false,
            "nativeBalance": "35159950000000000"
        },
        // ...
    ]
}