Interface UseHandleTXsArgs

Hierarchy

Properties

onBeforeTxSend?: ((args: { bundleID: string; message?: string; network: Network; txs: readonly TransactionEnvelope[] }) => void)

Type declaration

    • (args: { bundleID: string; message?: string; network: Network; txs: readonly TransactionEnvelope[] }): void
    • Called right before a TransactionEnvelope is sent.

      Parameters

      • args: { bundleID: string; message?: string; network: Network; txs: readonly TransactionEnvelope[] }
        • bundleID: string

          Unique identifier for the bundle of transactions.

        • Optional message?: string

          Message identifying the transaction.

        • network: Network

          The Network this transaction is taking place on.

        • txs: readonly TransactionEnvelope[]

          The TransactionEnvelopes about to be sent.

      Returns void

onError: ((err: SailError) => void)

Type declaration

    • (err: SailError): void
    • Called whenever an error occurs.

      Parameters

      Returns void

onTxSend?: ((args: { bundleID: string; message?: string; network: Network; pending: readonly PendingTransaction[]; txs: readonly TransactionEnvelope[] }) => void)

Type declaration

    • (args: { bundleID: string; message?: string; network: Network; pending: readonly PendingTransaction[]; txs: readonly TransactionEnvelope[] }): void
    • Called whenever a TransactionEnvelope is sent.

      Parameters

      • args: { bundleID: string; message?: string; network: Network; pending: readonly PendingTransaction[]; txs: readonly TransactionEnvelope[] }
        • bundleID: string

          Unique identifier for the bundle of transactions.

        • Optional message?: string

          Message identifying the transaction.

        • network: Network

          The Network this transaction is taking place on.

        • pending: readonly PendingTransaction[]

          Pending transactions.

        • txs: readonly TransactionEnvelope[]

          The TransactionEnvelopes that were sent.

      Returns void

refetchMany: ((keys: readonly PublicKey[]) => Promise<(null | AccountInfo<Buffer> | Error)[]>)

Type declaration

    • (keys: readonly PublicKey[]): Promise<(null | AccountInfo<Buffer> | Error)[]>
    • Refetches multiple accounts.

      Parameters

      • keys: readonly PublicKey[]

      Returns Promise<(null | AccountInfo<Buffer> | Error)[]>

txRefetchDelayMs?: number

Delay for the writable accounts to be refetched into the cache after a transaction.

waitForConfirmation?: boolean

If true, waits for a confirmation before proceeding to the next transaction.

Generated using TypeDoc