Documentation
    Preparing search index...

    Interface SendTransactionRequest

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

    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;
        extraCurrency?: { [k: number]: 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.

    • OptionalextraCurrency?: { [k: number]: string }

      Extra currencies to send.

    • Optionalpayload?: string

      Contract specific data to add to the transaction.

    • OptionalstateInit?: 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.