Questions tagged [transfer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
42 views

XCM transfer of ROC from parachain to Rococo does not update balance on Rococo

I am currently successfully able to transfer ROC from Rococo to a parachain using a Reserve Asset Transfer. However when I want to transfer some of the ROC from our parachain back to Rococo but when I ...
chexware's user avatar
  • 325
2 votes
1 answer
95 views

How to transfer wrapped DOT from Astar to Polkadot using XCM

How do you tranfer wrapped DOT (AssetId: 340,282,366,920,938,463,463,374,607,431,768,211,455) on Astar/Shiden to Polkadot/Kusama using XCM? Following this guide from Astar XCM documentation, this ...
Snowmead's user avatar
  • 605
1 vote
1 answer
52 views

List all balance changes of an account on a Substrate-based chain

My goal is to list all balance changes for an account on a Substrate-based chain like Acala. I assumed that on Substrate-based chains all incoming and outgoing values to and from an account would be ...
Aman's user avatar
  • 11
4 votes
1 answer
84 views

XCM Reserve Asset Transfer from Rococo succeed but do not appear on Parachain

I am testing transferring ROC between Rococo and a Parachain. The HRMP channels are already open but when I submit try the following XCM Message: The transfer returns no errors but the funds do not ...
chexware's user avatar
  • 325
3 votes
2 answers
90 views

XCM Reserve Transfer Between AssetHub (Rococo) is Unroutable

I am testing transferring ROC between AssetHub and a Parachain. The HRMP channels are already open but when I submit try the following XCM Message: I get this error: [ { type: "...
chexware's user avatar
  • 325
3 votes
0 answers
60 views

XCM via governance

Hi All I am currently embarking on trying to send funds from the treasury via XCM I am fairly certain this isn't possible right now because the treasury origin does not have send rights. I am ...
Sam Elamin's user avatar
  • 1,203
1 vote
1 answer
26 views

XCM Transfer | How to get account addresses of rococo, mangata?

I rewrote some examples of transfer assets from rococo to some parachains like mangata, rockmine, dali.... on the blockcoder repository at https://github.com/blockcodes/xcm-sdk I don't know how to get ...
Dung Nguyen's user avatar
0 votes
1 answer
24 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?
Pankaj's user avatar
  • 1,896
1 vote
2 answers
38 views

Sending native token in loop not running

Please explain why the following occurs When this method is called, the tokens are equally divided and distributed to the user. (as expected) All user balances get updated with the new amounts. #[ink(...
0xD1x0n's user avatar
  • 119
1 vote
2 answers
61 views

transfer balance subxt

I am using subxt library . I have downloaded metadata from chain using this url wss://rpc.polkadot.io:443 . I have also implemented default example from subxt documentation of transfer balance . i ...
Karanvir Singh's user avatar
4 votes
1 answer
48 views

What's the difference between calling T::Currency::transfer() and T::Currency::withdraw()

In the crowdfund pallet linked here: https://github.com/substrate-developer-hub/substrate-how-to-guides/blob/main/example-code/template-node/pallets/simple-crowdfund/src/lib.rs the withdraw function ...
Muhammed Rasheed's user avatar
1 vote
1 answer
90 views

How to use ClaimAssets after assets got trapped

If Alice sends some amount of native relaychain assets to Alice on a parachain and those assets got trapped in some reason, for example lack of amount to execute a message. For AssetTrap and ...
N1ght's user avatar
  • 31
2 votes
1 answer
114 views

Transfer from asset pallets with generated pallet account

I want to create a pallet account and then store assets using pallet assets in it, but I have a problem withdrawing assets from the pallet account because you can't transfer from pallet assets unless ...
Mohamad Al Zohbie's user avatar
3 votes
1 answer
117 views

Fund a pallet AccountID

I am developing a pallet, that has a prize pot and has to distribute it with different accounts that has won. Kind of similar to the Lottery pallet. My issue is with the Existential Deposit is when ...
Alex Bean's user avatar
  • 5,364
2 votes
1 answer
60 views

why are complexity parameter or accounts seeding unnecessary for benchmarking transfers?

I am trying to understand why there is no complexity parameter on transfer benchmarks. The substrate benchmarks documentation states: For benchmarks, you want to execute the most computationally ...
Yatusabes's user avatar
  • 766
0 votes
1 answer
71 views

Get Block hash from transfer in polkadot.js/api

I created kusama transfer function using polkadot.js/api. I followed https://polkadot.js.org/docs/api/examples/promise/make-transfer. I can get extrinsic hash from above. I want to get extrinsic ...
Heindrick's user avatar
  • 183
0 votes
2 answers
111 views

Collect some transfer fees before any transaction

I want to collect some transfer fee besides base, weight, length fee before user makes a transaction. Like if the base + weight + length fee = 0.1 And For every transaction I want to add additional 0....
Lovish Arora's user avatar
3 votes
1 answer
50 views

How do i verify total token mint and total token reserved are the same after a transfer between kusama parachains?

Scenario: Transfer token A from parachain_1 to parachain_2 I can verify the amount of token A issued on parachain_2 by looking at token A's total issuance on parachain_2 but how can i find the total ...
Sam G's user avatar
  • 31
0 votes
1 answer
61 views

T::Currency::transfer does not work correctly

I do the same as How can you transfer balances from one accountId to another in substrate runtime? and also have ReservableCurrencySelf::AccountId in type Currency. I've created an NFT with 100 units ...
marethyu's user avatar
  • 207
2 votes
1 answer
67 views

How to make TransferAll transaction with txwrapper?

We want transfer the entire transferable balance with txwrapper-core. Is there a guide for this? (ex. The value needs to be empty). We make the transaction with txwrapper-core and broadcast it with ...
PaperFrog's user avatar
  • 495
2 votes
1 answer
142 views

Why is `reserve` restricted for locked balances?

I read the answer of Shawn about locked and reserved balances. What is the difference between Free Balance, Reserved Balance, Locked Balance, Vesting Balance, etc...? He pointed out, that locked funds ...
Chralt's user avatar
  • 503
2 votes
1 answer
119 views

Using Polkadot-JS to have third party wallet pay for dot transaction fee

I am currently trying to use the polkadot-js sdk in order to transfer money between DOT wallets. I can successfully transfer money between two wallets using the api.tx.balances.transfer(destination, ...
cooper jones's user avatar
1 vote
1 answer
93 views

How can you transfer balances from one accountId to another in substrate runtime?

How can you transfer balances from one accountId to another in substrate runtime? #[pallet::weight(10_000 + T::DbWeight::get().writes(1))] pub fn my_transfer(origin: OriginFor<T>, account: T::...
hgminerva's user avatar
  • 467
1 vote
1 answer
80 views

Cannot map Enum JSON, unable to find 'aUSD' in token in api.tx.currencies.transfer

I'm trying to transfer aUSD test token from one wallet to another on my dapp using Polkadot.js wallet. Sender's wallet is connected to Mandala TC7 test. I read this at Acala's site and I'm trying to ...
ratib90486's user avatar
3 votes
1 answer
175 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
213 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
0 answers
95 views

KSM DOT Extrinsic difference?

Does anyone know that is there a difference between DOT / KSM / Westend transactions? Context: A common send/transfer transaction... I can generate same pk and address for Dot and KSm and WST chains ...
atesz's user avatar
  • 21
1 vote
1 answer
229 views

Make token/nft transfer within smart contract

I want to make token/nft transfer inside smart contracts. I saw some examples of token transfers and taking that reference, I tried to replicate something similar to that. here is the code. #![no_std] ...
pramitgaha's user avatar
-2 votes
1 answer
62 views

Looking for help to express an xcm destination oftype VersionedMultiLocation

I am trying to write a rust function that will call the transfer extrinsic function from pallet orml_xtokens. I am looking for help in translating the destination described in the image below. dest: ...
user1875433's user avatar
3 votes
1 answer
373 views

How to check the status of a transaction (after sending)

I'm aware of using a callback in signAndSend or sign to verify if a transaction is finalized (like here: https://polkadot.js.org/docs/api/start/api.tx.subs/). Is there a way to do this after the ...
Michael Ramuta's user avatar
4 votes
1 answer
57 views

How can I intercept a transaction in pallet_balance?

In what way can I intercept a transfer in pallet_balance? For example, I would like to check that the user has an identity in pallet_identity before completing a transfer with pallet_balance.
Huy Duan Tran's user avatar
0 votes
1 answer
29 views

Can I transfer the balance to the same address on Polkadot?

Can I send a balance when my from address and to address are the same? The reason for asking these questions is to deal with exceptions during development. Of course, I can test it myself, but I don't ...
PaperFrog's user avatar
  • 495
1 vote
1 answer
72 views

How to solve the issue"Element "asset_id" of struct is missing in given value" when I send a token transaction

I send the transaction using the substrate interface. I get the key pair and call: call_module = "Assets" call_function = 'transfer' call_params = { "id": asset_id, "...
Jack's user avatar
  • 61
3 votes
1 answer
78 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