You / Transfer

Transfer

Send tokens from your wallet, take them back out of your LAU, or move your whole identity to a new wallet. Every step is simulated from your wallet first; nothing is sent until you sign it there.

Not connected.

function transfer(address to, uint256 value) returns (bool)

A plain token transfer from your wallet. To make power tokens count, send them to your own LAU or YUE (the dashboard's Power tokens tab says which one each token needs).

Balance: —
Irreversible. A transfer cannot be undone. Tokens sent to someone else's wallet, LAU or YUE, or to a territory or token contract, cannot be pulled back by you. Check the "To" line: this page reads what the address is before you send.
Tokens on your own LAU can be taken back out with LAU.Withdraw (next tab). Getting tokens out of a YUE goes through CHAN with permissions this page does not handle.

function Withdraw(address what, uint256 amount) // LAU, owners only

Takes tokens back out of your LAU. Only an owner of the LAU can; anyone else gets OwnableUnauthorizedAccount. When it confirms, this page reads the receipt and tells you where the tokens went.

Your LAU holds: —

Lau.addOwner(new) → Chan.TransferYue(yue, new) → Cho.Enter(lau) → Lau.renounceOwnership(old)

Moves your identity to another wallet you control: the new wallet becomes an owner of your LAU, takes over your YUE, registers the LAU under itself, and finally the old wallet removes itself. Four transactions, in order. You will switch accounts in your wallet between steps 2 and 3, and back for step 4.

Read before you start. Step 1 gives the new wallet full control of your LAU: it could remove you. Step 4 removes the old wallet for good. Only use a new wallet whose keys you hold. Each step below shows its status as the chain reports it, so you can stop and come back.
  1. 1

    New wallet becomes an owner —

    LAU.addOwner(address newWallet)

    After this both wallets own the LAU. Checked by LAU.owner(new).

    Sign with: the old wallet
  2. 2

    Hand over your YUE —

    CHAN.TransferYue(address yue, address newWallet)

    Maps your YUE, and so your bars, to the new wallet. Checked by CHAN.Yan(new) == yue. Skip it if you have no YUE.

    Sign with: the old wallet
  3. 3

    Register the LAU under the new wallet —

    CHO.Enter(address lau)

    CHO maps the signing wallet to the LAU, so it only works once step 1 is done. Checked by CHO.GetUserTokenAddress(new) == lau.

    Sign with: the new wallet (switch accounts in your wallet)
  4. 4

    Old wallet lets go irreversible

    LAU.renounceOwnership(address oldWallet)

    Removes the old wallet as an owner. There is no undo: from here only the new wallet controls the LAU. This page will not send it until the chain shows steps 1 and 3 done.

    Sign with: the old wallet (switch back)

Each of the four calls was simulated on PulseChain against a real identity: steps 1, 2 and 4 passed when the owning wallet signed and reverted from a wallet that was not an owner; step 3 reverts InvalidOwnership until the signing wallet owns the LAU.