Documentation
    Preparing search index...

    Interface SendTransactionRequestWithMessages

    Send a transaction using the raw messages[] payload.

    interface SendTransactionRequestWithMessages {
        from?: string;
        items?: undefined;
        messages: {
            address: string;
            amount: string;
            extraCurrency?: { [k: number]: string };
            payload?: string;
            stateInit?: string;
        }[];
        network?: string;
        validUntil: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    from?: string

    Sender address in raw <workchain>:<hex> format.

    items?: undefined
    messages: {
        address: string;
        amount: string;
        extraCurrency?: { [k: number]: string };
        payload?: string;
        stateInit?: string;
    }[]

    Outgoing messages — at least one, no more than the wallet's SendTransactionFeature.maxMessages (declared in Wallet.device.features).

    Submission is grouped (one signed external) but execution is not atomic: each recipient contract is processed independently, so some messages can fail or bounce while others succeed.

    Type declaration

    • address: string

      Destination address in TEP-2 user-friendly base64url form. Wallets reject raw 0:<hex> form. The bounceable flag is taken from the address itself.

    • amount: string

      Nanocoins to send, as a decimal string.

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

      Extra currencies to attach.

    • Optionalpayload?: string

      Optional one-cell BoC body, base64-encoded.

    • OptionalstateInit?: string

      Optional one-cell BoC StateInit, base64-encoded.

    network?: string
    validUntil: number

    Deadline in unix epoch seconds. The wallet refuses the request after this moment.