Transfers a given amount of tokens from one account to another.

  • Parameters

    • api: ApiPromise
    • fromAccount: string | IKeyringPair
    • toAddress: string | AccountId
    • amount:
          | string
          | number
          | bigint
          | BN
    • OptionalallowDeath: boolean
    • OptionalstatusCb: ((result: ISubmittableResult) => void | Promise<void>)
        • (result): void | Promise<void>
        • Parameters

          • result: ISubmittableResult

          Returns void | Promise<void>

    Returns Promise<TransferBalanceResult>