Skip to main content

Parameters

chainId
string
default:"sui"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"suix_getCoinMetadata"
required
JSON-RPC method name.
params
object
required
Paramters for method suix_getCoinMetadata: [coinType].Positional parameters for suix_getCoinMetadata:
  • params[]: Coin type

Returns

result
object
The metadata for the coin type in the request
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=sui \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "suix_getCoinMetadata",
    "params": [
      "0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "decimals": 9,
    "name": "Usdc",
    "symbol": "USDC",
    "description": "Stable coin.",
    "iconUrl": null,
    "id": "0x51ceab2edc89f74730e683ebee65578cb3bc9237ba6fca019438a9737cf156ae"
  }
}