Skip to main content
POST
/
gateway
/
networks
/
{network_id}
/
tokens
Add Network Token
curl --request POST \
  --url http://localhost:8000/gateway/networks/{network_id}/tokens \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "<string>",
  "symbol": "<string>",
  "decimals": 123,
  "name": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

network_id
string
required

Body

application/json

Request to add a custom token to Gateway

address
string
required

Token contract address

symbol
string
required

Token symbol

decimals
integer
required

Number of decimals for the token

name
string | null

Token name (defaults to symbol)

Response

Successful Response

The response is of type Response Add Network Token Gateway Networks Network Id Tokens Post · object.