Constructors

Properties

address: string
chainId: string
encryptionUtils: SecretJS.EncryptionUtils
url: string
utils: {
    accessControl: {
        permit: PermitSigner;
    };
}

Type declaration

  • accessControl: {
        permit: PermitSigner;
    }
    • permit: PermitSigner
wallet: Signer

Methods

  • Private

    Broadcast a signed transactions

    Parameters

    • txBytes: Uint8Array

      Signed transaction bytes, can be the output of signTx()

    • Optional txOptions: SecretJS.TxOptions

      An optional object of transaction options

    Returns Promise<SecretJS.TxResponse>

    Async

  • Broadcasts a signed transaction to the network and monitors its inclusion in a block.

    If broadcasting is rejected by the node for some reason (e.g. because of a CheckTx failure), an error is thrown.

    If the transaction is not included in a block before the provided timeout, this errors with a TimeoutError.

    If the transaction is included in a block, a TxResponse is returned. The caller then usually needs to check for execution success or failure.

    Parameters

    Returns Promise<SecretJS.TxResponse>

  • Parameters

    • txBody: {
          type_url: string;
          value: {
              memo: string;
              messages: SecretJS.Tx.ProtoMsg[];
          };
      }

    Returns Promise<Uint8Array>

  • Parameters

    Returns Promise<void>

  • Parameters

    Returns Promise<Uint8Array>

  • Gets account number and sequence from the API, creates a sign doc, creates a single signature and assembles the signed transaction.

    The sign mode (SIGN_MODE_DIRECT or SIGN_MODE_LEGACY_AMINO_JSON) is determined by this client's signer.

    You can pass signer data (account number, sequence and chain ID) explicitly instead of querying them from the chain. This is needed when signing for a multisig account, but it also allows for offline signing (See the SigningStargateClient.offline constructor).

    Parameters

    Returns Promise<TxRaw>

  • Parameters

    Returns Promise<TxRaw>

  • Parameters

    Returns Promise<TxRaw>

  • Private

    Prepare and sign an array of messages as a transaction

    Parameters

    Returns Promise<Uint8Array>

    Returns a Promise that resolves txBytes, which can be passed into broadcastSignedTx().

    Async

  • Parameters

    Returns Promise<SimulateResponse>

  • Parameters

    • query: string
    • ibcTxOptions: SecretJS.IbcTxOptions = ...
    • pagination: PageRequest = ...
    • Optional order_by: OrderBy

    Returns Promise<SecretJS.TxResponse[]>

  • Parameters

    • packetSequence: string
    • packetSrcChannel: string
    • type: "ack" | "timeout"
    • ibcTxOptions: ExplicitIbcTxOptions
    • isDoneObject: {
          isDone: boolean;
      }
      • isDone: boolean

    Returns Promise<SecretJS.IbcResponse>

Generated using TypeDoc