βœ‰οΈ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

  1. submit - Submit a transaction to the intent relay service

  2. get_transaction_packets - Get transaction packets from the intent relay service

  3. get_packet - Get a specific packet from the intent relay service

Transaction Status Types

  • pending - No signatures

  • validating - Not enough signatures

  • executing - Enough signatures, no confirmed txn-hash

  • executed - 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