curl --request PUT \
--url https://api.dfns.io/wallets/{walletId}/transfers/{transferId}/abort \
--header 'Authorization: Bearer <token>' \
--header 'X-DFNS-USERACTION: <api-key>'{
"id": "xfr-20g4k-nsdpo-mg6arrifgvid4orn",
"walletId": "wa-5pfuu-9euek-h0odgb6snva8ph3k",
"network": "Algorand",
"requester": {
"userId": "us-6b58p-r53sr-rlrd3l5cj3uc4ome",
"tokenId": "to-202a0-cdo33-o65mbt6q758lvvnt"
},
"requestBody": {
"kind": "Native",
"to": "<string>",
"amount": "<string>",
"memo": "<string>",
"priority": "Slow",
"createDestinationAccount": true,
"offer": true,
"expiresAt": "2023-11-07T05:31:56Z",
"externalId": "<string>",
"feeSponsorId": "fs-5vqdl-gliqk-b4rfukqauov1sp7j"
},
"metadata": {
"asset": {
"symbol": "<string>",
"decimals": 123,
"verified": true,
"quotes": {
"EUR": 123,
"USD": 123
}
}
},
"status": "Pending",
"dateRequested": "2023-04-14T20:41:28.715Z",
"reason": "<string>",
"txHash": "<string>",
"fee": "<string>",
"datePolicyResolved": "2023-04-14T20:41:28.715Z",
"dateBroadcasted": "2023-04-14T20:41:28.715Z",
"dateConfirmed": "2023-04-14T20:41:28.715Z",
"approvalId": "ap-2a9in-tt2a1-983lho480p35ejd0",
"externalId": "<string>",
"feeSponsorId": "fs-5vqdl-gliqk-b4rfukqauov1sp7j"
}Aborts a transfer that is currently in ‘Executing’ status and has not yet been signed. Sets the transfer status to ‘Failed’ and removes it from the retry queue.
This is useful when a transfer is stuck in the execution pipeline (e.g., during construct or sign phase) and you want to abort it without waiting for it to fail on its own.
Unlike cancel, which creates a replacement on-chain transaction, abort simply marks the transfer as failed without any blockchain interaction.
curl --request PUT \
--url https://api.dfns.io/wallets/{walletId}/transfers/{transferId}/abort \
--header 'Authorization: Bearer <token>' \
--header 'X-DFNS-USERACTION: <api-key>'{
"id": "xfr-20g4k-nsdpo-mg6arrifgvid4orn",
"walletId": "wa-5pfuu-9euek-h0odgb6snva8ph3k",
"network": "Algorand",
"requester": {
"userId": "us-6b58p-r53sr-rlrd3l5cj3uc4ome",
"tokenId": "to-202a0-cdo33-o65mbt6q758lvvnt"
},
"requestBody": {
"kind": "Native",
"to": "<string>",
"amount": "<string>",
"memo": "<string>",
"priority": "Slow",
"createDestinationAccount": true,
"offer": true,
"expiresAt": "2023-11-07T05:31:56Z",
"externalId": "<string>",
"feeSponsorId": "fs-5vqdl-gliqk-b4rfukqauov1sp7j"
},
"metadata": {
"asset": {
"symbol": "<string>",
"decimals": 123,
"verified": true,
"quotes": {
"EUR": 123,
"USD": 123
}
}
},
"status": "Pending",
"dateRequested": "2023-04-14T20:41:28.715Z",
"reason": "<string>",
"txHash": "<string>",
"fee": "<string>",
"datePolicyResolved": "2023-04-14T20:41:28.715Z",
"dateBroadcasted": "2023-04-14T20:41:28.715Z",
"dateConfirmed": "2023-04-14T20:41:28.715Z",
"approvalId": "ap-2a9in-tt2a1-983lho480p35ejd0",
"externalId": "<string>",
"feeSponsorId": "fs-5vqdl-gliqk-b4rfukqauov1sp7j"
}CustomerEmployee)EndUser)Wallets:Transfers:Abort: Always required.Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows
User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows
Wallet id.
1 - 64Transfer id.
1 - 64Success
Transfer id.
1 - 64^xfr-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"xfr-20g4k-nsdpo-mg6arrifgvid4orn"
The source wallet for this tranfer.
1 - 64^wa-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"wa-5pfuu-9euek-h0odgb6snva8ph3k"
The blockchain network this transfer is on.
Algorand, AlgorandTestnet, Aptos, AptosTestnet, ArbitrumOne, ArbitrumSepolia, ArcTestnet, AvalancheC, AvalancheCFuji, BabylonGenesis, BabylonTestnet5, Base, BaseSepolia, Berachain, BerachainBepolia, Bitcoin, BitcoinSignet, BitcoinTestnet3, BitcoinCash, Bob, BobSepolia, Bsc, BscTestnet, Canton, CantonTestnet, Cardano, CardanoPreprod, Concordium, ConcordiumTestnet, Celo, CeloAlfajores, Codex, CodexSepolia, CosmosHub4, CosmosIcsTestnet, Dogecoin, DogecoinTestnet, Ethereum, EthereumClassic, EthereumClassicMordor, EthereumSepolia, EthereumHolesky, EthereumHoodi, FantomOpera, FantomTestnet, FlareC, FlareCCoston2, FlowEvm, FlowEvmTestnet, Hedera, HederaTestnet, Ink, InkSepolia, InternetComputer, Ion, IonTestnet, Iota, IotaTestnet, Kaspa, Kusama, KusamaAssetHub, Litecoin, LitecoinTestnet, Near, NearTestnet, Optimism, OptimismSepolia, Origyn, Plasma, PlasmaTestnet, Plume, PlumeSepolia, Paseo, PaseoAssetHub, Polkadot, PolkadotAssetHub, Polygon, PolygonAmoy, Polymesh, PolymeshTestnet, Race, RaceSepolia, SeiAtlantic2, SeiPacific1, Solana, SolanaDevnet, Starknet, StarknetSepolia, Stellar, StellarTestnet, Sui, SuiTestnet, Tezos, TezosGhostnet, Tempo, TempoModerato, Tsc, TscTestnet1, Ton, TonTestnet, Tron, TronNile, Westend, WestendAssetHub, XrpLedger, XrpLedgerTestnet The user who initiated the request.
Show child attributes
Transfer the native token of the network. All networks support the native token type.
Show child attributes
Additional metadata about the transfered asset.
Show child attributes
Transfer status.
| Status | Definition |
|---|---|
Pending | The request is pending approval due to a policy applied to the wallet. |
Executing | The request is approved and is in the process of being executed. note this status is only set for a short time between pending and broadcasted. |
Broadcasted | The transaction has been successfully written to the mempool. |
Confirmed | The transaction has been confirmed on-chain by our indexing pipeline. |
Failed | Indicates either system failure to complete the request or the transaction failed on chain. |
Rejected | The request has been rejected by a policy approval action. |
Pending, Executing, Broadcasted, Confirmed, Failed, Rejected The reason for a failed transfer.
The blockchain transaction hash for this transfer.
The fee paid for this transfer in minimum denomination.
The id of the approval request if this transfer triggered a policy.
1 - 64^ap-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"ap-2a9in-tt2a1-983lho480p35ejd0"
The external id provided at transfer creation time.
The fee sponsor id used to pay for the transfer fees.
1 - 64^fs-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"fs-5vqdl-gliqk-b4rfukqauov1sp7j"
Was this page helpful?