Submit Raw Transaction
Alpha. Sandbox only, on testnets; not available in production. Sign a customer-built EVM transaction with an account’s wallet and return it for you to broadcast. You supply the nonce, gas limit, and fees.
Authorizations
Bearer authentication with an API token
Body
- eip1559_transaction
- legacy_transaction
Request identifier in a UUID format. Serves as an idempotency key.
[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}Account whose wallet signs the transaction
Testnet chain the transaction is for. The chain ID in the signed transaction is derived from this value.
CHAIN_UNSPECIFIED, ETHEREUM_MAINNET, POLYGON_MAINNET, ETHEREUM_TESTNET, OPTIMISM_SEPOLIA, BASE_MAINNET, BASE_SEPOLIA, OPTIMISM_MAINNET, POLYGON_AMOY, SOLANA_MAINNET, SOLANA_DEVNET "ETHEREUM_MAINNET"
What Bastion does with the transaction. Only SIGN_ONLY is supported in the sandbox preview.
MODE_UNSPECIFIED, SIGN_ONLY "SIGN_ONLY"
Response
Success
- eip1559_transaction
- legacy_transaction
Unique identifier of the raw transaction
Request identifier supplied at creation
Account whose wallet signs the transaction
Chain the transaction is for
CHAIN_UNSPECIFIED, ETHEREUM_MAINNET, POLYGON_MAINNET, ETHEREUM_TESTNET, OPTIMISM_SEPOLIA, BASE_MAINNET, BASE_SEPOLIA, OPTIMISM_MAINNET, POLYGON_AMOY, SOLANA_MAINNET, SOLANA_DEVNET "ETHEREUM_MAINNET"
Status of a raw transaction.
STATUS_UNSPECIFIED: Not known yet; keep polling.CREATED: Stored, but signing did not complete. Retry the request with the same request_id.SIGNED: Signed. In sign-only mode Bastion does not broadcast, so the transaction stays SIGNED.
New statuses may be added; treat an unknown value as not yet final.
STATUS_UNSPECIFIED, CREATED, SIGNED "CREATED"
What the transaction is expected to do, estimated from the account's address before signing. Informational only: it never blocks signing.
Address that signs and sends the transaction
Nonce the transaction was signed at, as a decimal string
Hash of the signed transaction; empty until signed
Signed transaction, 0x-prefixed, ready for eth_sendRawTransaction. Returned by Submit Raw Transaction.