No metadata for WAL Token from snapshot through sui-tools

I’m experiencing an issue where the sui client balance command does not display the correct symbol for my custom token WAL. Instead of showing “WAL,” it shows unknown_symbol. The token metadata is correctly published and retrievable via RPC and the sui client object command, including the symbol, name, decimals, and icon URL.

Here are some details:

Token type: 0x8270feb7375eee355e64fdb69c50abb6b5f9393a722883c1cf45f8e26048810a::wal::WAL
CoinMetadata object ID: 0x27e59c4f7998e6f1b4567ad460439ca4bbe6b14f2d7ce2206d75519cefd9bf02
Raw balance shown by sui client balance: 1989605000
Decimals: 9

The balance command output snippet:

╭───────────────────────────────────────────────────╮
│ Balance of coins owned by this address │
├───────────────────────────────────────────────────┤
│ ╭───────────────────────────────────────────────╮ │
│ │ coin balance (raw) balance │ │
│ ├───────────────────────────────────────────────┤ │
│ │ Sui 5963714468 5.96 SUI │ │
│ │ unknown 1989605000 1.98 unknown_symbol │ │
│ ╰───────────────────────────────────────────────╯ │
╰───────────────────────────────────────────────────╯

The CLI seems to not map or cache the coin metadata symbol for this token.

Could you please advise how to properly register or refresh metadata in the CLI so that it shows the correct symbol?
We were previously having this issue with the SUI coin and not the WAL Token I proceeded to download the db snapshot using the sui tool without skipping indexes and then this problem emerged where the metadata for the WAL token is now not present.

I noticed that running a rpc call to our node with this body,
{
“jsonrpc”: “2.0”,
“id”: 1,
“method”: “suix_getCoinMetadata”,
“params”: [“0x8270feb7375eee355e64fdb69c50abb6b5f9393a722883c1cf45f8e26048810a::wal::WAL”]
}

returns
{
“jsonrpc”: “2.0”,
“id”: 1,
“result”: null
}
But when using your provided testnet public rpc
I am returned with:
{
“jsonrpc”: “2.0”,
“id”: 1,
“result”: {
“decimals”: 9,
“name”: “WAL Token”,
“symbol”: “WAL”,
“description”: “The native token for the Walrus Protocol.”,
“iconUrl”: “NOT_ALLOWED TO BE POSTED AS A TOPIC ON THIS FORUM”,
“id”: “0x27e59c4f7998e6f1b4567ad460439ca4bbe6b14f2d7ce2206d75519cefd9bf02”
}
}
Which leads me to believe the metadata is not present, is there any way to refresh this?

1 Like