Cancels a specified transaction from a developer-controlled wallet. Gas fees may still be incurred. This is a best-effort operation, it won't be effective if the original transaction has already been processed by the blockchain.
Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests. To create a UUIDv4 go to uuidgenerator.net. If the same key is reused, it will be treated as the same request and the original response will be returned.
A base64 string expression of the entity secret ciphertext. The entity secret should be encrypted by the entity public key. Circle mandates that the entity secret ciphertext is unique for each API request.
The universally unique identifier of the resource.
1from circle.web3 import developer_controlled_wallets
2from circle.web3 import utils
3
4client = utils.init_developer_controlled_wallets_client(api_key=key, entity_secret=entitySecret)
5
6api_instance = developer_controlled_wallets.TransactionsApi(client)
7
8request = developer_controlled_wallets.CancelTransactionForDeveloperRequest.from_dict({
9 "idempotencyKey": "d1b66f87-2320-5834-bcd3-175a36a4d331",
10})
11response = api_instance.create_developer_transaction_cancel(id="c7064cb0-19ba-57c3-a4d2-92cf71ede662", cancel_transaction_for_developer_request=request)
12print(response.json())
13
1{
2 "data": {
3 "id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
4 "state": "CANCELLED"
5 }
6}