Submit transaction

Transaction · Acts onchain

Broadcasts a signed intent bundle. The signature must come from the owning wallet, which makes this the one surface in the API that cannot act on an arbitrary address. Everything before it, reading, composing, compiling, is open; the moment value can move, the wallet is the gate. The submitted program carries its own conditions, so execution happens when they are met, not necessarily when this call returns. Reach for it as the final step of the flow the create and compile surfaces set up: sign what they produced, hand it over, and track the record through the transactions list.

Send a request

Request body

{
chain_id: number
owner: string
salt: string | undefined
plugs: string[]
state: string[]
signature: string
manifest: ({
token_in: string
token_out: string
amount_in: number
executor_slot: number
route_slot: number
})[]
}

Response

{
transaction_hash: string
}

Code samples

Language

Claude

Prompt

Call the Plug API endpoint "Submit transaction".
## Endpoint
PUT /address/{address}/transaction/
Base URL: https://api.plug.to
## Description
Broadcasts a signed intent bundle.
The signature must come from the owning wallet, which makes this the one surface in the API that cannot act on an arbitrary address. Everything before it, reading, composing, compiling, is open; the moment value can move, the wallet is the gate. The submitted program carries its own conditions, so execution happens when they are met, not necessarily when this call returns.
Reach for it as the final step of the flow the create and compile surfaces set up: sign what they produced, hand it over, and track the record through the transactions list.
## Path Parameters
- address (string, required) — The EVM address to get information for. In the case that you request an address we have never indexed, we will immediately index it.
Current value: 0x62180042606624f02d8a130da8a3171e9b33894d
## Request Body
- chain_id (integer, required)
- owner (string, required)
- salt (string, optional)
- plugs (array of string, required)
- state (array of string, required)
- signature (string, required)
- manifest (array
- token_in (string, required)
- token_out (string, required)
- amount_in (integer, required)
- executor_slot (integer, required)
- route_slot (integer, required), required)
## Response Schema
- transaction_hash (string, required)
## Example Request
PUT https://api.plug.to/address/0x62180042606624f02d8a130da8a3171e9b33894d/transaction/