Dfns TypeScript SDK - v0.8.35
    Preparing search index...

    Type Alias CancelTransactionResponse

    type CancelTransactionResponse = {
        approvalId?: string;
        dateBroadcasted?: string;
        dateConfirmed?: string;
        datePolicyResolved?: string;
        dateRequested: string;
        debugTrace?: unknown;
        details?: { [x: string]: unknown };
        externalId?: string;
        fee?: string;
        id: string;
        network: string;
        reason?: string;
        replacementId?: string;
        requestBody:
            | {
                externalId?: string;
                kind: "Transaction";
                transaction: string
                | {};
            }
            | { externalId?: string; kind: "Psbt"; psbt: string }
            | { externalId?: string; kind: "SignDocDirect"; signDoc: string }
            | {
                externalId?: string;
                feeSponsorId: string;
                kind: "UserOperations";
                userOperations: { data?: string; to: string; value?: string }[];
            }
            | { call: {}; externalId?: string; kind: "FunctionCall" }
            | { externalId?: string; kind: "TransferPreapproval" }
            | {
                data?: string;
                externalId?: string;
                gasLimit?: string | string;
                kind: "Evm";
                nonce?: number | string | string;
                to?: string;
                value?: string | string;
            }
            | {
                data?: string;
                externalId?: string;
                gasLimit?: string
                | string;
                kind: "Eip1559";
                maxFeePerGas?: string | string;
                maxPriorityFeePerGas?: string | string;
                nonce?: number | string | string;
                to?: string;
                value?: string | string;
            }
            | {
                count?: number;
                externalId?: string;
                kind: "CreateSolanaNonceAccounts";
                nonceAuthority?: string;
                priority?: "Slow"
                | "Standard"
                | "Fast";
            }
            | {
                assetCode?: string;
                assetId?: string;
                currency?: string;
                externalId?: string;
                issuer?: string;
                kind: "AcceptInboundAsset";
                tokenId?: string;
            }
            | {
                amount: string;
                destinationDomain: number;
                externalId?: string;
                feeSponsorId?: string;
                kind: "SolanaCctpBurn";
                maxFee: string;
                minFinalityThreshold: number;
                mintRecipient: string;
                usdcMint: string;
                useDurableNonce?: boolean;
            }
            | {
                amount: string;
                assetCode: string;
                externalId?: string;
                issuer: string;
                kind: "StellarCctpApprove";
            }
            | {
                amount: string;
                assetCode: string;
                destinationDomain: number;
                externalId?: string;
                issuer: string;
                kind: "StellarCctpBurn";
                maxFee: string;
                minFinalityThreshold: number;
                mintRecipient: string;
            }
            | {
                attestation: string;
                externalId?: string;
                kind: "StellarCctpClaim";
                message: string;
            }
            | {
                decision: "Accept"
                | "Reject";
                externalId?: string;
                kind: "SettleOffer";
                txHash: string;
            }
            | { args?: {}; externalId?: string; kind: "ActivateAccount" }
            | {
                externalId?: string;
                kind: "CancelTransaction";
                signedTx: string;
                txHash?: string;
            }
            | {
                externalId?: string;
                kind: "SpeedUpTransaction";
                signedTx: string;
                txHash: string;
            };
        requester: { tokenId?: string; userId: string };
        status:
            | "Pending"
            | "Executing"
            | "Broadcasted"
            | "Confirmed"
            | "Failed"
            | "Rejected";
        txHash?: string;
        walletId: string;
    }
    Index

    Properties

    approvalId?: string
    dateBroadcasted?: string
    dateConfirmed?: string
    datePolicyResolved?: string
    dateRequested: string
    debugTrace?: unknown

    Raw blockchain node diagnostics, when available. Omitted when the diagnostic or response size limit is exceeded.

    details?: { [x: string]: unknown }

    Structured representation of the data used to construct the signature (e.g. nonce, gas parameters). Shape is blockchain specific.

    externalId?: string
    fee?: string
    id: string

    Transaction id.

    network: string
    reason?: string

    The reason for a failed transaction.

    replacementId?: string

    The id of the replacement transaction (cancel or speed-up) issued for this transaction.

    requestBody:
        | { externalId?: string; kind: "Transaction"; transaction: string
        | {} }
        | { externalId?: string; kind: "Psbt"; psbt: string }
        | { externalId?: string; kind: "SignDocDirect"; signDoc: string }
        | {
            externalId?: string;
            feeSponsorId: string;
            kind: "UserOperations";
            userOperations: { data?: string; to: string; value?: string }[];
        }
        | { call: {}; externalId?: string; kind: "FunctionCall" }
        | { externalId?: string; kind: "TransferPreapproval" }
        | {
            data?: string;
            externalId?: string;
            gasLimit?: string | string;
            kind: "Evm";
            nonce?: number | string | string;
            to?: string;
            value?: string | string;
        }
        | {
            data?: string;
            externalId?: string;
            gasLimit?: string
            | string;
            kind: "Eip1559";
            maxFeePerGas?: string | string;
            maxPriorityFeePerGas?: string | string;
            nonce?: number | string | string;
            to?: string;
            value?: string | string;
        }
        | {
            count?: number;
            externalId?: string;
            kind: "CreateSolanaNonceAccounts";
            nonceAuthority?: string;
            priority?: "Slow"
            | "Standard"
            | "Fast";
        }
        | {
            assetCode?: string;
            assetId?: string;
            currency?: string;
            externalId?: string;
            issuer?: string;
            kind: "AcceptInboundAsset";
            tokenId?: string;
        }
        | {
            amount: string;
            destinationDomain: number;
            externalId?: string;
            feeSponsorId?: string;
            kind: "SolanaCctpBurn";
            maxFee: string;
            minFinalityThreshold: number;
            mintRecipient: string;
            usdcMint: string;
            useDurableNonce?: boolean;
        }
        | {
            amount: string;
            assetCode: string;
            externalId?: string;
            issuer: string;
            kind: "StellarCctpApprove";
        }
        | {
            amount: string;
            assetCode: string;
            destinationDomain: number;
            externalId?: string;
            issuer: string;
            kind: "StellarCctpBurn";
            maxFee: string;
            minFinalityThreshold: number;
            mintRecipient: string;
        }
        | {
            attestation: string;
            externalId?: string;
            kind: "StellarCctpClaim";
            message: string;
        }
        | {
            decision: "Accept"
            | "Reject";
            externalId?: string;
            kind: "SettleOffer";
            txHash: string;
        }
        | { args?: {}; externalId?: string; kind: "ActivateAccount" }
        | {
            externalId?: string;
            kind: "CancelTransaction";
            signedTx: string;
            txHash?: string;
        }
        | {
            externalId?: string;
            kind: "SpeedUpTransaction";
            signedTx: string;
            txHash: string;
        }

    Type Declaration

    • { externalId?: string; kind: "Transaction"; transaction: string | {} }
      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • kind: "Transaction"
      • transaction: string | {}

        A JSON transaction object (recommended for EVM and other compatible networks) or an unsigned hex-encoded transaction.

    • { externalId?: string; kind: "Psbt"; psbt: string }
      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • kind: "Psbt"
      • psbt: string

        The hex encoded PSBT.

    • { externalId?: string; kind: "SignDocDirect"; signDoc: string }
      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • kind: "SignDocDirect"
      • signDoc: string
    • {
          externalId?: string;
          feeSponsorId: string;
          kind: "UserOperations";
          userOperations: { data?: string; to: string; value?: string }[];
      }
      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • feeSponsorId: string

        A fee sponsor id to sponsor the transaction fee by another wallet. (read more here)

      • kind: "UserOperations"
      • userOperations: { data?: string; to: string; value?: string }[]
    • { call: {}; externalId?: string; kind: "FunctionCall" }
      • call: {}

        Function call arguments

      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • kind: "FunctionCall"
    • { externalId?: string; kind: "TransferPreapproval" }
      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • kind: "TransferPreapproval"
    • {
          data?: string;
          externalId?: string;
          gasLimit?: string | string;
          kind: "Evm";
          nonce?: number | string | string;
          to?: string;
          value?: string | string;
      }
      • Optionaldata?: string
      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • OptionalgasLimit?: string | string
      • kind: "Evm"
      • Optionalnonce?: number | string | string

        The current nonce of the signer EOA.

      • Optionalto?: string
      • Optionalvalue?: string | string
    • {
          data?: string;
          externalId?: string;
          gasLimit?: string | string;
          kind: "Eip1559";
          maxFeePerGas?: string | string;
          maxPriorityFeePerGas?: string | string;
          nonce?: number | string | string;
          to?: string;
          value?: string | string;
      }
      • Optionaldata?: string
      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • OptionalgasLimit?: string | string
      • kind: "Eip1559"
      • OptionalmaxFeePerGas?: string | string
      • OptionalmaxPriorityFeePerGas?: string | string
      • Optionalnonce?: number | string | string
      • Optionalto?: string
      • Optionalvalue?: string | string
    • {
          count?: number;
          externalId?: string;
          kind: "CreateSolanaNonceAccounts";
          nonceAuthority?: string;
          priority?: "Slow" | "Standard" | "Fast";
      }
      • Optionalcount?: number

        Optional. Number of nonce accounts to create in one bootstrap transaction (1–8; capped by Solana max-tx-size budget). Defaults to 1.

      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • kind: "CreateSolanaNonceAccounts"
      • OptionalnonceAuthority?: string

        Optional Solana address. The wallet that will own the nonce accounts (be their on-chain authority). When omitted, the URL wallet bootstraps for itself. When set, the URL wallet pays the rent and signs the bootstrap, but the resulting accounts' authority is this address — used to bootstrap on behalf of an offline wallet that can't sign within the 90-second blockhash window.

      • Optionalpriority?: "Slow" | "Standard" | "Fast"

        Priority for the bootstrap fee. Defaults to Standard.

    • {
          assetCode?: string;
          assetId?: string;
          currency?: string;
          externalId?: string;
          issuer?: string;
          kind: "AcceptInboundAsset";
          tokenId?: string;
      }
      • OptionalassetCode?: string

        Stellar asset code (1–12 ASCII alphanumeric chars).

      • OptionalassetId?: string

        Algorand Standard Asset (ASA) id.

      • Optionalcurrency?: string

        XRPL IOU currency code.

      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • Optionalissuer?: string

        Stellar (G-address) or XRPL (r-address) issuer of the asset.

      • kind: "AcceptInboundAsset"
      • OptionaltokenId?: string

        Hedera token entity id, e.g. "0.0.456858".

    • {
          amount: string;
          destinationDomain: number;
          externalId?: string;
          feeSponsorId?: string;
          kind: "SolanaCctpBurn";
          maxFee: string;
          minFinalityThreshold: number;
          mintRecipient: string;
          usdcMint: string;
          useDurableNonce?: boolean;
      }
      • amount: string

        USDC amount to burn (6 decimals).

      • destinationDomain: number

        CCTP destination domain.

      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • OptionalfeeSponsorId?: string

        Fee sponsor that pays the burn network fee and the ephemeral event-account rent.

      • kind: "SolanaCctpBurn"
      • maxFee: string

        Max fee Circle may deduct from the burn.

      • minFinalityThreshold: number

        CCTP min finality threshold (1000 Fast, 2000 Standard).

      • mintRecipient: string

        Destination recipient as a bytes32 0x-hex value (EVM address left-padded).

      • usdcMint: string

        Source USDC SPL mint address.

      • OptionaluseDurableNonce?: boolean

        Bind the burn to a durable nonce instead of a recent blockhash.

    • {
          amount: string;
          assetCode: string;
          externalId?: string;
          issuer: string;
          kind: "StellarCctpApprove";
      }
      • amount: string

        Allowance for the CCTP TokenMessengerMinter, in Stellar-local 7-decimal units.

      • assetCode: string

        USDC asset code.

      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • issuer: string

        USDC SEP-41 issuer (G… account).

      • kind: "StellarCctpApprove"
    • {
          amount: string;
          assetCode: string;
          destinationDomain: number;
          externalId?: string;
          issuer: string;
          kind: "StellarCctpBurn";
          maxFee: string;
          minFinalityThreshold: number;
          mintRecipient: string;
      }
      • amount: string

        USDC amount to burn, in Stellar-local 7-decimal units.

      • assetCode: string

        USDC asset code.

      • destinationDomain: number

        CCTP destination domain.

      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • issuer: string

        USDC SEP-41 issuer (G… account).

      • kind: "StellarCctpBurn"
      • maxFee: string

        Max fee Circle may deduct from the burn, in 7-decimal units.

      • minFinalityThreshold: number

        CCTP min finality threshold (2000 Standard; Stellar has no Fast tier).

      • mintRecipient: string

        Destination recipient as a bytes32 0x-hex value (EVM address left-padded).

    • {
          attestation: string;
          externalId?: string;
          kind: "StellarCctpClaim";
          message: string;
      }
      • attestation: string

        Circle's attestation over the message, hex-encoded.

      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • kind: "StellarCctpClaim"
      • message: string

        The attested CCTP message, hex-encoded (from Circle IRIS).

    • {
          decision: "Accept" | "Reject";
          externalId?: string;
          kind: "SettleOffer";
          txHash: string;
      }
      • decision: "Accept" | "Reject"
      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • kind: "SettleOffer"
      • txHash: string
    • { args?: {}; externalId?: string; kind: "ActivateAccount" }
      • Optionalargs?: {}
      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • kind: "ActivateAccount"
    • {
          externalId?: string;
          kind: "CancelTransaction";
          signedTx: string;
          txHash?: string;
      }
      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • kind: "CancelTransaction"
      • signedTx: string
      • OptionaltxHash?: string
    • {
          externalId?: string;
          kind: "SpeedUpTransaction";
          signedTx: string;
          txHash: string;
      }
      • OptionalexternalId?: string

        A unique ID from your system. It can be leveraged to be used as an idempotency key (read more here).

      • kind: "SpeedUpTransaction"
      • signedTx: string
      • txHash: string
    requester: { tokenId?: string; userId: string }

    The user who initiated the request.

    Type Declaration

    • OptionaltokenId?: string

      Token id.

    • userId: string

      User id.

    status:
        | "Pending"
        | "Executing"
        | "Broadcasted"
        | "Confirmed"
        | "Failed"
        | "Rejected"
    txHash?: string
    walletId: string

    Wallet id.