Gateway

Add Network Token

Add a custom token to Gateway's token list for a specific network.

Args: network_id: Network ID in format 'chain-network' (e.g., 'solana-mainnet-beta', 'ethereum-mainnet') token_request: Token details (address, symbol, name, decimals)

Example: POST /gateway/networks/ethereum-mainnet/tokens { "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "symbol": "USDC", "name": "USD Coin", "decimals": 6 }

Note: After adding a token, restart Gateway for changes to take effect.

post/gateway/networks/{network_id}/tokens

Path parameters

network_idstring required

Request body

addressstring required

Token contract address

symbolstring required

Token symbol

namestring nullable

Token name (defaults to symbol)

decimalsinteger required

Number of decimals for the token

Response

Successful Response

object required

Changes

Changed in 2 of the 13 revisions of this API.3

    • added the optional property // to the response with the status

      response-optional-property-added

    • added the optional property // to the response with the status

      response-optional-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog