Documentation
    Preparing search index...

    Interface TonItem

    Native TON transfer.

    interface TonItem {
        address: string;
        amount: string;
        extraCurrency?: { [k: number]: string };
        payload?: string;
        stateInit?: string;
        type: "ton";
    }
    Index

    Properties

    address: string

    Destination address in TEP-2 user-friendly base64url form. The bounceable flag is taken from the address itself.

    amount: string

    Nanocoins to send, as a decimal string (e.g. "5000000" for 0.005 TON).

    extraCurrency?: { [k: number]: string }

    Extra currencies to attach: map of TEP-92 currency id (decimal integer key) to amount in elementary units (decimal string value).

    payload?: string

    Optional one-cell BoC body, base64-encoded. Omit for a plain transfer.

    stateInit?: string

    Optional one-cell BoC StateInit, base64-encoded. Use it to deploy a contract together with the value transfer.

    type: "ton"