Skip to content

feat(sdk-core): add execMode support to txrequests API#8952

Draft
bitgo-ai-agent-dev[bot] wants to merge 1 commit into
masterfrom
CSHLD-972-exec-unspecified-txrequests
Draft

feat(sdk-core): add execMode support to txrequests API#8952
bitgo-ai-agent-dev[bot] wants to merge 1 commit into
masterfrom
CSHLD-972-exec-unspecified-txrequests

Conversation

@bitgo-ai-agent-dev
Copy link
Copy Markdown

Summary

  • Add optional execMode parameter ('EXEC_TRY' | 'EXEC_UNSPECIFIED') to PrebuildTransactionWithIntentOptions and PrebuildTransactionOptions
  • Pass execMode as a top-level body field in POST /api/v2/wallet/{walletId}/txrequests alongside intent, apiVersion, and preview
  • Thread execMode through all transaction types in wallet.ts prebuildTransactionTxRequests
  • Add execMode to BuildParams so it passes through prebuildWhitelistedParams
  • Export TxRequestExecMode type from @bitgo/sdk-core

When execMode: 'EXEC_UNSPECIFIED' is set, the server defers transaction execution, giving Figure Markets exchange control over the workflow (e.g. for contractCall intents). Omitting the field preserves existing behavior (EXEC_TRY).

Test plan

  • New unit tests in modules/bitgo/test/v2/unit/internal/tssUtils/eddsa.ts:
    • Verifies execMode: 'EXEC_UNSPECIFIED' is included in the request body when specified
    • Verifies execMode is absent from the request body when not specified
  • Run yarn unit-test --scope bitgo -- -- --grep 'prebuildTxWithIntent'
  • TypeScript compiles without new errors

Ticket: CSHLD-972

🤖 Generated with Ralph

Add optional execMode parameter to prebuildTxWithIntent and the
wallet prebuildTransaction flow. When set to 'EXEC_UNSPECIFIED',
the server defers transaction execution, giving Figure Markets
exchange control over the workflow. Defaults to 'EXEC_TRY' when
omitted (existing behavior is unchanged).

The field is passed as a top-level body param alongside intent,
apiVersion, and preview in the POST /wallet/{id}/txrequests call.

Ticket: CSHLD-972
Session-Id: caa99360-6177-4227-8aba-5043f8cb453f
Task-Id: 49710c31-924d-41fb-b44b-2dc4a10bce34
@linear-code
Copy link
Copy Markdown

linear-code Bot commented Jun 5, 2026

CSHLD-972

@bitgo-ai-agent-dev bitgo-ai-agent-dev Bot force-pushed the CSHLD-972-exec-unspecified-txrequests branch from c22cdd0 to edb5547 Compare June 5, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant