Actions

Submit transaction

Submit the transaction to the blockchain.

post/v1/transactions/{transactionId}/submit

Request

  • Base URL: https://api.yield.xyz
  • URL: https://api.yield.xyz/v1/transactions/{transactionId}/submit
  • Auth: API key in header x-api-key

Path parameters

transactionIdstring required
Example:21f5fd15-cf80-4b9a-804f-062c40dc3740

The unique identifier of the transaction

Request body

signedTransactionstring required

Encoded signed transaction to submit to the blockchain

Example request

{
  "signedTransaction": "0aba010aa0010a232f636f736d6f732e7374616b696e672e763162657461312e4d736744656c656761746512790a2a696e6a316a61366664646e6e33727272677137646d6a757a6b71363279376d68346675346b6e656d37791231696e6a76616c6f7065723167346436646d766e706737773779756779366b706c6e6470376a70666d66336b7274736368701a180a03696e6a121131303030303030303030303030303030301215766961205374616b654b6974204349442d31303039129e010a7e0a740a2d2f696e6a6563746976652e63727970746f2e763162657461312e657468736563703235366b312e5075624b657912430a41042aec99dce37ea3d8f11b44da62bce0e885f0ba5b309382954babec76eb138cb0bb84f4f24b9f63143f2ce66923b2dd3ee55475e680a7b992b9cbc17941f6486312040a0208011802121c0a160a03696e6a120f31383732303030303030303030303010d0b4471a0b696e6a6563746976652d312092c35b"
}

Response

Transaction successfully submitted

idstring required

Unique transaction identifier

titlestring required

Display title for the transaction

network'ethereum' | 'ethereum-goerli' | 'ethereum-holesky' | 'ethereum-sepolia' | 'ethereum-hoodi' | 'arbitrum' | 'base' | 'base-sepolia' | 'gnosis' | 'optimism' | 'polygon' | 'polygon-amoy' | 'starknet' | 'zksync' | 'linea' | 'unichain' | 'plume' | 'monad-testnet' | 'monad' | 'robinhood' | 'robinhood-testnet' | 'arc-testnet' | 'arc' | 'avalanche-c' | 'avalanche-c-atomic' | 'avalanche-p' | 'binance' | 'celo' | 'fantom' | 'harmony' | 'moonriver' | 'okc' | 'viction' | 'core' | 'sonic' | 'plasma' | 'katana' | 'hyperevm' | 'tempo' | 'pharos' | 'xlayer' | 'agoric' | 'akash' | 'axelar' | 'band-protocol' | 'bitsong' | 'canto' | 'chihuahua' | 'comdex' | 'coreum' | 'cosmos' | 'crescent' | 'cronos' | 'cudos' | 'desmos' | 'dydx' | 'evmos' | 'fetch-ai' | 'gravity-bridge' | 'injective' | 'irisnet' | 'juno' | 'kava' | 'ki-network' | 'mars-protocol' | 'nym' | 'okex-chain' | 'onomy' | 'osmosis' | 'persistence' | 'quicksilver' | 'regen' | 'secret' | 'sentinel' | 'sommelier' | 'stafi' | 'stargaze' | 'stride' | 'teritori' | 'tgrade' | 'umee' | 'sei' | 'mantra' | 'celestia' | 'saga' | 'zetachain' | 'dymension' | 'humansai' | 'neutron' | 'polkadot' | 'kusama' | 'westend' | 'bittensor' | 'aptos' | 'binancebeacon' | 'cardano' | 'near' | 'solana' | 'solana-devnet' | 'stellar' | 'stellar-testnet' | 'sui' | 'tezos' | 'tron' | 'ton' | 'ton-testnet' | 'hyperliquid' required

Network this transaction is for

status'NOT_FOUND' | 'CREATED' | 'BLOCKED' | 'WAITING_FOR_SIGNATURE' | 'SIGNED' | 'BROADCASTED' | 'PENDING' | 'CONFIRMED' | 'FAILED' | 'SKIPPED' required

Current status of the transaction

type'SWAP' | 'DEPOSIT' | 'APPROVAL' | 'STAKE' | 'SET_OPERATOR' | 'CLAIM_UNSTAKED' | 'CLAIM_REWARDS' | 'RESTAKE_REWARDS' | 'UNSTAKE' | 'SPLIT' | 'MERGE' | 'LOCK' | 'UNLOCK' | 'SUPPLY' | 'ADD_LIQUIDITY' | 'REMOVE_LIQUIDITY' | 'BRIDGE' | 'VOTE' | 'REVOKE' | 'RESTAKE' | 'REBOND' | 'WITHDRAW' | 'WITHDRAW_ALL' | 'CREATE_ACCOUNT' | 'REVEAL' | 'MIGRATE' | 'DELEGATE' | 'UNDELEGATE' | 'UTXO_P_TO_C_IMPORT' | 'UTXO_C_TO_P_IMPORT' | 'WRAP' | 'UNWRAP' | 'UNFREEZE_LEGACY' | 'UNFREEZE_LEGACY_BANDWIDTH' | 'UNFREEZE_LEGACY_ENERGY' | 'UNFREEZE_BANDWIDTH' | 'UNFREEZE_ENERGY' | 'FREEZE_BANDWIDTH' | 'FREEZE_ENERGY' | 'UNDELEGATE_BANDWIDTH' | 'UNDELEGATE_ENERGY' | 'P2P_NODE_REQUEST' | 'CREATE_EIGENPOD' | 'VERIFY_WITHDRAW_CREDENTIALS' | 'START_CHECKPOINT' | 'VERIFY_CHECKPOINT_PROOFS' | 'QUEUE_WITHDRAWALS' | 'COMPLETE_QUEUED_WITHDRAWALS' | 'LZ_DEPOSIT' | 'LZ_WITHDRAW' | 'LUGANODES_PROVISION' | 'LUGANODES_EXIT_REQUEST' | 'INFSTONES_PROVISION' | 'INFSTONES_EXIT_REQUEST' | 'INFSTONES_CLAIM_REQUEST' | 'BATCH' required

Type of transaction operation

hashstring nullable required

Transaction hash (available after broadcast)

createdAtstring date-time required

When the transaction was created

broadcastedAtstring date-time nullable required

When the transaction was broadcasted to the network

signedTransactionstring nullable required

Signed transaction data (ready for broadcast)

annotatedTransactionobject nullable

Human-readable breakdown of the transaction for display purposes

structuredTransactionobject nullable

Detailed transaction data for client-side validation or simulation

stepIndexnumber

Zero-based index of the step in the action flow

descriptionstring

User-friendly description of what this transaction does

errorstring nullable

Error message if the transaction failed

gasEstimatestring

Estimated gas cost for the transaction

explorerUrlstring nullable

Link to the blockchain explorer for this transaction

isMessageboolean

Whether this transaction is a message rather than a value transfer

Example response

{
  "id": "tx_123abc",
  "title": "Approve USDC",
  "network": "ethereum",
  "status": "PENDING",
  "type": "STAKE",
  "hash": "0x1234567890abcdef...",
  "annotatedTransaction": {
    "method": "stake",
    "inputs": {
      "amount": "1000000000000000000"
    }
  },
  "description": "Approve USDC for staking",
  "gasEstimate": "21000",
  "explorerUrl": "https://etherscan.io/tx/0x1234..."
}

Changes

No recorded changes to this operation across all 1 revision of this API.