src/client/index.js
/**
   * Transfer tokens from one address to another.
   * @param {String} fromAddress
   * @param {String} toAddress
   * @param {Number} amount
   * @param {String} asset
   * @param {String} memo optional memo
   * @param {Number} sequence optional sequence
   * @return {Promise} resolves with response (success or fail)
   */
Transfer tokens from one address to another.
Transfer tokens from one address to another .
async transfer(fromAddress, toAddress, amount, asset, memo = "", sequence = null) {
    amount = new Big(amount)
    checkNumber(amount, "amount")
    const value = {
      from_address: fromAddress,
      to_address: toAddress,
      amount: [{
        denom: asset,
        amount: ""+amount
      }]
    }
    const msg = {
      type: txType.SendMsg,
      value: value
    }
    const signedTx = await this._prepareTransaction(msg, fromAddress, sequence, memo)
    return this._broadcastDelegate(signedTx)
  }
async transfer ( fromAddress , toAddress , amount , asset , memo = "" , sequence = null ) { amount = new Big ( amount ) checkNumber ( amount , "amount" ) const value = { from_address : fromAddress , to_address : toAddress , amount : [ { denom : asset , amount : "" + amount } ] } const msg = { type : txType . SendMsg , value : value } const signedTx = await this . _prepareTransaction ( msg , fromAddress , sequence , memo ) return this . _broadcastDelegate ( signedTx ) }
Transfer tokens from one address to another.
Transfer tokens from one address to another .