Hierarchy

  • SecretNetworkClient

Constructors

Properties

address: string
chainId: string
encryptionUtils: EncryptionUtils
query: Querier
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: TxOptions

      An optional object of transaction options

    Returns Promise<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

    • txBytes: Uint8Array
    • timeoutMs: number
    • checkIntervalMs: number
    • mode: BroadcastMode
    • waitForCommit: boolean
    • Optional ibcTxOptions: IbcTxOptions

    Returns Promise<TxResponse>

  • Parameters

    Returns Promise<TxResponse>

  • Parameters

    • txResponses: TxResponse[]
    • Optional ibcTxOptions: IbcTxOptions

    Returns Promise<TxResponse[]>

  • Parameters

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

    Returns Promise<Uint8Array>

  • Parameters

    Returns Promise<TxResponse>

  • Parameters

    Returns Promise<void>

  • Parameters

    • messages: Msg[]
    • Optional txOptions: TxOptions
    • simulate: boolean = false

    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

    • messages: Msg[]
    • fee: StdFee
    • memo: string
    • Optional explicitSignerData: SignerData
    • simulate: boolean = false

    Returns Promise<TxRaw>

  • Parameters

    • account: AccountData
    • messages: Msg[]
    • fee: StdFee
    • memo: string
    • __namedParameters: SignerData
    • simulate: boolean = false

    Returns Promise<TxRaw>

  • Parameters

    Returns Promise<TxResponse>

  • Parameters

    • account: AccountData
    • messages: Msg[]
    • fee: StdFee
    • memo: string
    • __namedParameters: SignerData
    • simulate: boolean = false

    Returns Promise<TxRaw>

  • Private

    Prepare and sign an array of messages as a transaction

    Parameters

    • messages: Msg[]

      Array of messages to prepare and sign

    • Optional txOptions: TxOptions

      An optional object of transaction options

    Returns Promise<Uint8Array>

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

    Async

  • Parameters

    Returns Promise<SimulateResponse>

  • Parameters

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

    Returns Promise<TxResponse[]>

  • Parameters

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

    Returns Promise<IbcResponse>

Generated using TypeDoc