Function X Docs
Search…
f(x)Core REST API

Requesting the details of the address

Request

Path /cosmos/auth/v1beta1/accounts/{address}
Method GET
Path Parameters
  • address(string): f(x)Core address (example: fx1zgpzdf2uqla7hkx85wnn4p2r3duwqzd8xst6v2)

Response

  • 200 Successful
    1
    {
    2
    "account": {
    3
    "@type": "/cosmos.auth.v1beta1.BaseAccount",
    4
    "address": "fx1zgpzdf2uqla7hkx85wnn4p2r3duwqzd8xst6v2",
    5
    "pub_key": {
    6
    "@type": "/cosmos.crypto.secp256k1.PubKey",
    7
    "key": "A9O/arb3WCKylChhVxfA1IFXBnfi8NtAMdnoR9H5VlAs"
    8
    },
    9
    "account_number": "0",
    10
    "sequence": "1"
    11
    }
    12
    }
    Copied!

Requesting the balance of the address

Request

Path /cosmos/bank/v1beta1/balances/{address}
Method GET
Path Parameters
  • address(string): f(x)Core address(example: fx1zgpzdf2uqla7hkx85wnn4p2r3duwqzd8xst6v2)

Response

  • 200 Successful
    1
    {
    2
    "balances": [
    3
    {
    4
    "denom": "FX",
    5
    "amount": "2999900000000000000000000"
    6
    }
    7
    ],
    8
    "pagination": {
    9
    "next_key": null,
    10
    "total": "1"
    11
    }
    12
    }
    Copied!

Requesting the current token supply of $FX token

  • Total circulating supply of $FX = Delegated asset $FX + Non-delegated asset $FX
    • Delegated asset $FX = Total $FX that delegated in f(x)Core validator node
    • Non-delegated asset $FX = Ethereum cross chain locked fund + Unclaimed reward of validator (including commission and transaction fee) + Unclaimed reward of delegator + Wallet balance + Pool of ecosystem and community + Locked fund of Governance
    • Ethereum cross chain locked fund = Total $FX (ERC20) on Ethereum

Request

Path /cosmos/bank/v1beta1/supply
Method GET
Path Parameters
None

Response

  • 200 Successful
    1
    {
    2
    "supply": [
    3
    {
    4
    "denom": "FX",
    5
    "amount": "438724604960126741923659830"
    6
    }
    7
    ]
    8
    }
    Copied!