Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change "transfer" extrinsics to "transfer_allow_death" #478

Open
laboon opened this issue Sep 19, 2024 · 1 comment
Open

Change "transfer" extrinsics to "transfer_allow_death" #478

laboon opened this issue Sep 19, 2024 · 1 comment

Comments

@laboon
Copy link

laboon commented Sep 19, 2024

As transfer is deprecated on Polkadot and Kusama, it makes sense to use transfer_allow_death (or transfer_keep_alive) instead.

An example of using "transfer" is here: https://polkadot.js.org/docs/api/start/api.tx/ but I did not search through the entire repo for other examples of it.

@sibelly
Copy link

sibelly commented Oct 28, 2024

Example:

const txHash = await api.tx.balances
  .transferKeepAlive(ADDR2, 1)
  .signAndSend(ADDR1);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants