interface SendTransactionRequest {
    from?: string;
    messages: {
        address: string;
        amount: string;
        payload?: string;
        stateInit?: string;
    }[];
    network?: CHAIN;
    validUntil: number;
}

Properties

from?: string

The sender address in ':' format from which DApp intends to send the transaction. Current account.address by default.

messages: {
    address: string;
    amount: string;
    payload?: string;
    stateInit?: string;
}[]

Messages to send: min is 1, max is 4.

Type declaration

  • address: string

    Receiver's address.

  • amount: string

    Amount to send in nanoTon.

  • Optional payload?: string

    Contract specific data to add to the transaction.

  • Optional stateInit?: string

    Contract specific data to add to the transaction.

network?: CHAIN

The network (mainnet or testnet) where DApp intends to send the transaction. If not set, the transaction is sent to the network currently set in the wallet, but this is not safe and DApp should always strive to set the network. If the network parameter is set, but the wallet has a different network set, the wallet should show an alert and DO NOT ALLOW TO SEND this transaction.

validUntil: number

Sending transaction deadline in unix epoch seconds.

Generated using TypeDoc