Transfer

type TransferBuilder

constructor

/**
* @param {number} account_id
* @param {string} to_address
* @param {number} from_sub_account_id
* @param {number} to_sub_account_id
* @param {number} token
* @param {string} fee
* @param {string} amount
* @param {number} nonce
* @param {number | undefined} [ts]
*/
TransferBuilder(account_id, to_address, from_sub_account_id, to_sub_account_id, token, fee, amount, nonce, ts)

type Transfer

Transfer transaction type.

constructor

/**
* @param {TransferBuilder} builder
*/
newTransfer(builder)

func getEthSignMsg

/**
* @param {string} token_symbol
* @returns {string}
*/
getEthSignMsg(token_symbol)

Get the Ethereum sign message

func sign

/**
* @param {ZkLinkSigner} signer
* @returns {any}
*/
sign(signer)

Sign transaction with given ZkLinkSigner

Last updated