Questions tagged [token]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
28 views

How to retrieve number of decimals for custom token (not DOT)?

How to retrieve number of decimals for custom token (not DOT)? api.registry.chainDecimals is for DOT. I need to retrieve it for a custom token.
Robert La Ferla's user avatar
1 vote
3 answers
45 views

How to call PSP22::approve function from Frontend

Any guidance on how to call my psp22 approve function from the front end ? This is currently how I'm doing it but it doesn't seem to give increased allowance (although its successful) : import { ...
0xD1x0n's user avatar
  • 119
2 votes
1 answer
43 views

Custom emitting, minting, and max total supply

We would like to implement custom emitting of the native token, like 1 token per block. Can you point us where the minting happens using substrate? Which pallet implements it? Also is there a way to ...
Balance AI's user avatar
0 votes
2 answers
39 views

Add a logo to Substrate Native Token

I want to add a logo to my native token on Substrate. I've seen it's implemented for multiple Substrate-based chains, but I couldn't find their implementation logics. Like here are the logos for ...
Discardo's user avatar
  • 342
1 vote
2 answers
103 views

PSP22 cross-contract call to get metadata such as token decimals and token name using ink!

I have a little problem here. I have the address of a contract (PSP22 token) with the {}Ref associated with it. I want to make a cross-contract call to get the decimals of the contract. Its Ref is use ...
Edinyanga Ottoho's user avatar
0 votes
1 answer
37 views

About the total mint token in polkadot and kusama

How many tokens are minted in Polkadot and Kusama in the past year? Is there any way to find out?
bun's user avatar
  • 373
1 vote
1 answer
39 views

Assets pallet token and democracy pallet

Is it possible to use a custom_token created with the assets_pallet in the democracy_pallet instead of the native_token? EXPLANATION When voting during a referendum, I would like the balance parameter ...
Kazunobu Ndong's user avatar
2 votes
2 answers
112 views

Finding about native token of a parachain

Is there a way to query whether a chain has a native token and what it is? For instance can I query Moonbeam, to find that it's native token is GLMR(Glimmer). Similarly for the rest of the parachains.
Pranay's user avatar
  • 141
0 votes
1 answer
54 views

What is the Token Standard used by the balances pallet to issue the native token for the chain in the substrate kitchen sink node?

We are using the kitchen sink substrate node with the standard balances pallet. No changes. The chain mints native tokens using the usual processes. My question is: what token standard is used in the ...
KathrynColleen's user avatar
3 votes
2 answers
216 views

What is the best way to create own token in substrate?

I want to launch my own token with Substrate chain. What is the best way to implement it?
Para's user avatar
  • 1,767
0 votes
1 answer
127 views

How to create dex pallet? [closed]

I want to create dex pallet(without using pallet-contracts) with functionality like uniswap with pools of liquidity, this dex gonna work with my multi-token-pallet. So now I'm thinking about how to ...
Nikita Chernega's user avatar
0 votes
1 answer
76 views

Error while adding orml_tokens. 'Orml_tokens` does not have the std feature enabled

Why I have this Error? Tokens: orml_tokens::{Pallet, Storage, Event<T>, Config<T>} = 50, this error originates in the macro construct_runtime (in Nightly builds, run with -Z macro-...
rust.dev's user avatar
  • 511
1 vote
1 answer
223 views

How to transfer a native chain token from one account to the contract?

I want to write a contract which enables the user to deposit the native chain token in a contract and to then later withdraw the token. The only example I found so far, only enables the user to ...
rajohs's user avatar
  • 483
1 vote
1 answer
119 views

Runtime panic when teleporting dot from relay to parachain locally

I'm trying to enforce a same native token rule for the relay and all future parachains in my local environment. For this, I must first configure my parachain to accept teleports from a relay account ...
Juan Ignacio Rios's user avatar
1 vote
0 answers
47 views

Genesis Config of ORML tokens not loaded for other pallets

In my runtime, one pallet reserves some currency using the orml-currencies pallet on genesis, and for this, it depends on accounts having some initial balance. This should be provided by the genesis ...
islami00's user avatar
  • 561
3 votes
1 answer
140 views

Can't get transaction hash from signAndSend of Polkadot.js

I'm new and I'm trying to get the transaction hash but I'm only getting undefined. I used this tutorial and this and below is my code. const txHash = await polkadot.tx.balances .transfer('5F1pZe........
ratib90486's user avatar
1 vote
1 answer
131 views

How to send specific token (like ACA) using Polkadot.js

I'm new to substrate and Polkadot and I'm coming from ETH/Solidity. I noticed many test tokens in my Polkadot.js wallet like DOT, LDOT, ACA, KSM, etc. I'm trying to code a dapp that lets my user send ...
ratib90486's user avatar
1 vote
1 answer
98 views

Need help with understanding Token Economics Design for Substrate based blockchain (without any Parachains)

What are some very optimal tokenomics for a substrate based blockchain without any parachains that can be easily implemented using substrate's default framework? The documentation on W3 research says ...
Madness's user avatar
  • 11
4 votes
0 answers
40 views

Which bridge should I use to transfer stable coin in other chain for solo chain?

My purpose is to transfer stable coin BUSD (BEP20) / USN (NEAR) / USDT (TRC20) to the other wallet address on the target BEP20, NEAR, TRC20 network Is there any existing bridge that already supports ...
Neo.Mxn0's user avatar
  • 141
0 votes
2 answers
212 views

How can I query how many decimal places does a Substrate asset have?

For example, DOT has 10 but can I check it in Polkadot JS Apps? I want to apply it to all parachain assets.
Sebastian Crypto's user avatar
1 vote
1 answer
62 views

Mint Fungible Token Development Network

Is it possible to Mint Fungible token on Development (local) Substrate? https://polkadot.js.org/apps not showing "assets" under "network" tab. Using substrate-contracts-node
user avatar
5 votes
2 answers
42 views

Subsocial tokens to create profile

Where can I acquire subsocial tokens so I can start using that platform. I see that there's a faucet but when I go to the faucet it says that's no longer available because of main net launch. But that ...
Wonder Wilds's user avatar
2 votes
1 answer
87 views

Slashing and rewarding funds

I am trying to understand slashing and rewarding funds from the recipe example. https://substrate.recipes/currency-imbalances.html For slashing funds it doesn't require initialization with <...
Amiya Behera's user avatar
2 votes
1 answer
65 views

How to get the token balance(rmrk) by py-substrate?

I want to get the token balance of RMRK in the chain statemine with py-substrate.
Jack's user avatar
  • 61
3 votes
1 answer
76 views

What is the best practices to add new token to an account?

So I'm trying to make a faucet for my blockchain. What I'm doing is creating a faucet account with a lot of balances (with the set_balance method from the sudo pallet). When there's a drip request, I ...
Minh Mốc's user avatar