docs icon indicating copy to clipboard operation
docs copied to clipboard

Change "transfer" extrinsics to "transfer_allow_death"

Open laboon opened this issue 1 year ago • 1 comments

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.

laboon avatar Sep 19 '24 12:09 laboon

Example:

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

sibelly avatar Oct 28 '24 20:10 sibelly