βοΈIntent Relay API
The Intent Relay API Service provides functionality for submitting transactions and retrieving transaction packets across different chains. This service is part of the cross-chain communication infrastructure.
Available Actions
submit- Submit a transaction to the intent relay serviceget_transaction_packets- Get transaction packets from the intent relay serviceget_packet- Get a specific packet from the intent relay service
Transaction Status Types
pending- No signaturesvalidating- Not enough signaturesexecuting- Enough signatures, no confirmed txn-hashexecuted- Has confirmed transaction-hash
API Examples
Submit Transaction
const request = {
action: 'submit',
params: {
chain_id: '1',
tx_hash: '0x123',
},
} satisfies IntentRelayRequest<'submit'>;
const response: SubmitTxResponse = await submitTransaction(request, 'https://api.example.com/relay');
// Response:
{
"success": true,
"message": "Transaction registered"
}Get Transaction Packets
Get Packet
Type Definitions
For detailed type definitions, refer to the source code in packages/sdk/src/services/intentRelay/IntentRelayApiService.ts.
Last updated