UNPKG

1.11 kBJavaScriptView Raw
1export const runtime = {
2 // https://github.com/open-web3-stack/open-runtime-module-library/blob/b57f88b39cd547e2fb51727d8bb9bcc64fddf8b5/tokens/rpc/runtime-api/src/lib.rs#L11-L18
3 TokensApi: [
4 {
5 methods: {
6 query_existential_deposit: {
7 description: 'Query the existential amount for a specific currency',
8 params: [
9 {
10 name: 'currencyId',
11 // This is CurrencyId, as per the return value, we are unsure
12 // if this is specialized and/or global to the chain or not
13 type: 'Raw'
14 }
15 ],
16 // This is Balance - since we don't understand enough about the way
17 // in which this is used, we default to u128 here (it certainly could
18 // be a specialized type that doesn't map to the on-chain Balance)
19 type: 'u128'
20 }
21 },
22 version: 1
23 }
24 ]
25};