salt-sdk
    Preparing search index...

    Interface SubmitTxParams

    Parameters for the orchestrated submitTx method. Similar to TransactionParams but vaultAddress and vaultPublicKey are optional as they will be fetched automatically from the account details.

    interface SubmitTxParams {
        accountId: string;
        chainId: number;
        data?: string;
        gas?: string | number;
        gasPrice?: string | number;
        nonce?: string | number;
        notes?: string;
        returnHash?: boolean;
        sendingProvider?: Provider;
        signer: Signer;
        to: string;
        value: string;
        vaultAddress?: string;
        vaultPublicKey?: string;
    }
    Index

    Properties

    accountId: string

    ID of the Salt account to use for the transaction

    '1234567890'
    
    chainId: number

    Chain ID of the network (integer)

    11155111
    
    data?: string

    Data of the transaction.

    '0x'
    
    '0x'
    
    gas?: string | number

    Gas fee of the transaction.

    '40000000'
    
    gasPrice?: string | number

    Current gas price of the chain.

    '1000000000000000000'
    
    nonce?: string | number

    Nonce of the transaction. If not provided, it will be fetched from the Salt API

    1
    
    notes?: string

    Notes of the transaction. If not provided, it will be set to an empty string

    'This is a note'
    
    returnHash?: boolean

    Return hash of the transaction. If not provided, it will be set to false

    true
    
    false
    
    sendingProvider?: Provider

    Sending provider of the transaction. If not provided, it will select a provider depending on the chainId

    new providers.JsonRpcProvider('https://rpc.ankr.com/eth')
    
    signer: Signer

    Ethers signer for the transaction

    to: string

    Recipient address for the transaction

    '0x1234567890123456789012345678901234567890'
    
    value: string

    Amount of token to send. This is a string, eventually parsed with ethers.utils.parseEther

    vaultAddress?: string

    Vault address of the transaction. If not provided, it will be fetched from account details.

    '0x1234567890123456789012345678901234567890'
    
    vaultPublicKey?: string

    Vault public key of the transaction. If not provided, it will be fetched from account details.

    '0x1234567890123456789012345678901234567890'