pub async fn token_symbol(ledger_canister_id: Principal) -> CallResult<Symbol>
Expand description

Calls the “token_symbol” method on the specified canister.

§Example

use candid::Principal;
use ic_cdk::api::{caller, call::call};
use ic_ledger_types::{Symbol, token_symbol};

async fn symbol(ledger_canister_id: Principal) -> String {
  token_symbol(ledger_canister_id).await.expect("call to ledger failed").symbol
}