Submit Raw Transaction
Sandbox only, on testnets; not available in production. Sign a customer-built EVM transaction with an account’s wallet. In SIGN_ONLY mode, Bastion returns the signed transaction for you to broadcast, and assigns the nonce and estimates the gas limit and fees you leave out. In SIGN_AND_SUBMIT mode, Bastion picks the nonce, gas limit, and fees, broadcasts the transaction, and tracks it; poll Get Raw Transaction until its status is CONFIRMED, FAILED, or CANCELED.
Body
- eip1559_transaction
- legacy_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"
Response
Success
- eip1559_transaction
- legacy_transaction
Status of a raw transaction.
STATUS_UNSPECIFIED: Not known yet; keep polling.CREATED: Stored, but not yet signed or broadcast. In SIGN_ONLY mode, signing did not complete: retry the request with the same request_id. In SIGN_AND_SUBMIT mode, Bastion is preparing to broadcast it.SIGNED: Signed. SIGN_ONLY mode only: Bastion does not broadcast, so the transaction stays SIGNED.SUBMITTED: SIGN_AND_SUBMIT mode only. Broadcast and waiting to be mined.CONFIRMED: SIGN_AND_SUBMIT mode only. Mined and succeeded. Final.FAILED: SIGN_AND_SUBMIT mode only. Mined and reverted, or never mined: it could not be signed or broadcast, or another transaction used its nonce. failure_reason says which. Final.CANCELED: SIGN_AND_SUBMIT mode only. The transaction was stuck, so Bastion mined an empty transaction at its nonce in its place. It will never run. Final.
New statuses may be added; treat an unknown value as not yet final.
STATUS_UNSPECIFIED, CREATED, SIGNED, SUBMITTED, CONFIRMED, FAILED, CANCELED "CREATED"