mina_sendTransaction

This method is used for sign and broadcast zkApp transaction.

You need to create zk commond in zkApp first, then call Auro Wallet to sign and broadcast.

Params

interface SendTransactionArgs  {
    // only sign with auro wallet, auro-extension-wallet support from V2.2.16. 
    readonly onlySign?: boolean; 
    // custom nonce with auro wallet, auro-extension-wallet support from V2.3.0. 
    readonly nonce?: number; 
    // transaction is zk commond that create by contract.
    readonly transaction: string | object;
    // option. 
    readonly feePayer?: {
        // option. Auro Wallet also provide advance option to change fee.
        readonly fee?: number;
        // option.
        readonly memo?: string;
    };
}

Result

Errors

1001

User disconnect, need connect Auro Wallet.

Can not get connected account.

1002

The request was rejected by the user.

20003

The parameters were invalid.

Please check address, fee.

23001

Origin dismatch.

Check origin safe.

Example

Request

Result

Last updated