Transfer

Event v101 → v424, v432 → current #2

Emitted when tokens are transferred between accounts.

View events on chain
Useful for: walletsexchangesanalyticsdevelopersstakers

The Big Picture

This is the fundamental 'money moved' event. Every TAO transfer between accounts emits this event. It's the building block for payments, tips, exchange operations, and any movement of liquid (unstaked) TAO. Wallets and exchanges monitor this constantly.

Why This Matters

When someone sends you TAO, or you send TAO to someone, this event proves it happened. The from/to/amount fields tell the complete story. Exchanges use this to credit deposits; wallets use it to show transaction history.

Example Scenario

You receive a payment of 10 TAO. Balances.Transfer fires with from: sender's address, to: your address, amount: 10000000000 (in RAO, = 10 TAO). Your wallet detects this event and shows 'Received 10 TAO from [sender]'.

Common Questions

Why is the amount so large?
Amounts are in RAO (the smallest unit). 1 TAO = 1,000,000,000 RAO. Divide by 10^9 to get TAO. This avoids decimal precision issues in blockchain math.
What's the difference between Transfer and transfer_keep_alive?
transfer_keep_alive refuses to empty your account (keeps existential deposit). transfer_allow_death can empty it completely. Both emit Balances.Transfer.
Can transfers fail silently?
No. If you see Balances.Transfer, the transfer succeeded. If it failed, you'd see ExtrinsicFailed instead, with no Transfer event.

Use Cases

  • Track incoming and outgoing TAO payments
  • Build payment notification systems
  • Monitor exchange deposits and withdrawals
  • Track fund flows across the network

How to Use This Event

  • → Subscribe to your address for payment notifications
  • → Monitor exchange hot wallets for deposit detection
  • → Index all transfers to build payment analytics
  • → Track whale movements and fund flows

From Chain Metadata

Transfer succeeded.

Migration Notes

v424 v432 Breaking

amount changed from u64 to TaoBalance

Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.

Triggers

Preconditions

  • Sender has sufficient balance
  • Transfer won't kill sender (or transfer_allow_death used)
  • Recipient will meet existential deposit

Effects

Storage Modified

Postconditions

  • Sender balance decreased by amount
  • Recipient balance increased by amount

Side Effects

  • May trigger NewAccount if recipient is new
  • May trigger KilledAccount if sender balance goes to zero

Event Data

#NameTypeDescription
0
from
AccountId Sender account (hex -> SS58)
1
to
AccountId Recipient account (hex -> SS58)
2
amount
TaoBalance T::BalanceTransfer amount (RAO)

Code Examples

import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Subscribe to Transfer events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.Balances.Transfer.get(block.hash);
  for (const evt of events) {
    console.log("Transfer:", evt.payload);
  }
});

On-Chain Activity

Emission Frequency
●●●●●● Infrastructure >50M emissions

Protocol plumbing, fires on nearly every extrinsic

#4 most emitted event

As of block 9,385,000

Version History

v101 block 1 3 args
v432 block 8,636,190 3 args Current

Runtime Info

Pallet Index
5
Event Index
2
First Version
v101
Current Version
v490