Function transferFullBalance

Transfers all available tokens from one account to another.

  • Parameters

    • api: ApiPromise
    • fromAccount: string | IKeyringPair
    • toAddress: string | AccountId
    • OptionalkeepAlive: boolean
    • OptionalstatusCb: ((result: ISubmittableResult) => void | Promise<void>)
        • (result): void | Promise<void>
        • Parameters

          • result: ISubmittableResult

          Returns void | Promise<void>

    Returns Promise<TransferBalanceResult>