Questions tagged [balances]
A question that refers to the balances pallet, or anything to do with balance transfers.
83
questions
0
votes
1
answer
15
views
Create and sign transaction with offline signer and ECDSA signatures
I would like to understand how to sign a balances.transferKeepAlive transaction completely offline with an existing signing service with ECDSA signatures. This is what I have so far that is working:
...
1
vote
1
answer
22
views
No transferrable DOT in my account while I should do
My account shows 0 DOT transferrable on subscan but has 243.2 free by querying system.account on pjs
I tried sending 5 DOT to the address, assuming the 5 DOT would appear in transferrable but for some ...
0
votes
1
answer
24
views
Error when building a substrate node template with multiple balances pallet instances configured
Im getting the following Substrate Error when configuring more than 1 balances
note: multiple `impl`s satisfying `RuntimeCall: From<BalancesCall<_, _>>` found in the `my_node` crate:
...
1
vote
1
answer
30
views
Conceptually why can't I deposit balance < ED to an existing account?
I was experimenting with ED and ref counting of the account system, it seems counterintuitive that depositing a balance less than ED will have no effect even on a (long-)existing account, the account ...
0
votes
0
answers
19
views
Error UnknownAsset when trying to increase AssetBalance
The error is shown in substrate-frontend
Transaction Failed! system.ExtrinsicFailed::{"token":"UnknownAsset"}
Score is an asset in pallet_template,
in build function of ...
0
votes
1
answer
61
views
How to define the connection between pallets?
In susbtrate, how to use a component of a pallet in other pallets, how to refer them?
For example,
How is the Balance in pallet-balances used in pallet-staking? Or in a custom pallet template?
And ...
1
vote
1
answer
31
views
How to manage multiple balances for one account?
Here is my scenario: One account will maintain 3 balances of Token A, Token B, Token C.
When Alice sends x Token A to Bob, it should deposit to Bob's balance for the same kind of token, means Token A. ...
1
vote
0
answers
38
views
How to implement multi-currency staking?
I was wondering what would be the best way to achieve multi-currency staking given:
It's on a solo chain
Foreign assets are bridged (like Eth or BTC, pallet-asset can be used)
No conversion from ...
1
vote
1
answer
45
views
Why do I need to call the upgrade_account in the balance pallet?
With the introduction of version 0.9.42, the logic of how balances work in Substrate changed. This version upgrade introduced a new extrinsic called upgrade_account. The fee_frozen attribute of the ...
1
vote
0
answers
50
views
When doing transaction my total issuance got deducted
I am currently working on incorporating a transaction fee logic where the block reward for a validator is intended to be shared between the validator and its nominator. However, I am encountering an ...
0
votes
1
answer
26
views
How to read treasury pallet funds?
I am able to add funds in treasury pallet, now I want to get the total balance of treasury pool. How can this be done? Can someone provide some suggestions?
1
vote
2
answers
95
views
How to fix the `FailedToTransactAsset("InsufficientBalance")` error?
I already read this post XCM cross-chain transfer error FailedToTransactAsset("InsufficientBalance")? , but nothing helped.
I get the following XCM logs (originates from Parachain 2001):
...
2
votes
1
answer
29
views
How to send fix amount of balance to contract address
I'm working on a smart contract where I need to send a balance from a user account to the contract address. The amount to be sent is fixed and hardcoded in the contract. I have tried to figure out ...
1
vote
1
answer
49
views
How to get Locked Balance of a particular account with a particular LockIdentifier in a pallet?
In a pallet I have used set_lock() with a own LockIdentifier for that pallet. Now I need to check the locked balance of an account with that LockIdentifier and not the global locked amount. how to do ...
0
votes
1
answer
30
views
can we do batch/multiple transfer in once?
I want to send the tokens to bulk/multiple accounts.
Do we have any way to do it?