salt-sdk
    Preparing search index...

    Interface DeploySubmitTxParams

    Orchestrated submit parameters for a contract deployment. to must be omitted, or null or undefined; data (the compiled bytecode) is required.

    Gas is required for contract deployment until the Salt API supports estimatetransaction with a null recipient; can be relaxed once the API is updated.

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

    Hierarchy

    • SubmitTxParamsBase
      • DeploySubmitTxParams
    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

    Compiled contract bytecode to deploy.

    '0x608060...'
    
    gas: string | number

    Gas limit for the deployment. Required for contract deployment (API does not yet support gas estimate for deploy).

    '300000'
    
    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?: undefined

    Omit, or set to null/undefined, for contract deployments.

    value: string

    Amount to send, denominated in ETH (not wei). Internally converted via parseEther.

    '0' // no value
    
    '0.5' // 0.5 ETH
    
    '0.000000000000000001' // 1 wei
    
    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'