Home

Get total balance of a specific coin type for an sui address

POST
https://sui.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the total balance for a specified coin type for the given sui address. Defaults to 0x2::sui::sui if coin_type is not provided.

Body

application/json
jsonrpcstringrequired
methodstringrequired
paramsArray<string | string>required

Array containing the owner address and optional coin type.

Show child attributes
One of

sui address of the owner.

string

Optional coin type. Defaults to 0x2::sui::sui.

string
idintegerrequired

Response

200OK

Successful response returning the balance.

400Bad Request

Bad Request — Invalid parameters.

401Unauthorized

Unauthorized — Missing or invalid API key.

500Internal Server Error

Internal Server Error — Could not retrieve balance.