Documentation
    Preparing search index...

    Interface SignMessageRequest

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

    Properties

    from?: string

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

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

    Messages to sign: 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?: string

    The network (mainnet or testnet) where DApp intends to sign the message. If not set, the message is signed for 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 SIGN this message.

    validUntil: number

    Signing deadline in unix epoch seconds.