quintolet / ledger-candid

Supplement interface to the NNS ledger canister

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing Candid Interface to the NNS Ledger Canister

The NNS ledger canister on the Internet Computer offers both Candid and Protobuf interfaces. However the candid interface is missing some important utilities, including looking up a past transaction.

To solve this problem, we provide the following missing interfaces in Candid by proxying the call to the NNS ledger and translating between the data formats:

service : {
  block : (nat64) -> (variant { Ok: variant { Ok: Block; Err: CanisterId }; Err: text });
  tip_of_chain : () -> (variant { Ok: TipOfChain; Err: text });
}

The complete interface can be found in source file ledger_candid.did or canister ockk2-xaaaa-aaaai-aaaua-cai on ic.rocks.

About

Supplement interface to the NNS ledger canister

License:MIT License


Languages

Language:Rust 100.0%