CPI Route Accounts
POST /api/v1/cpi/route-accounts — Build the route instruction for another program to call via CPI, signed by its PDA.
Authorizations
API key sent as Authorization: Bearer vulcx_.... Required on every endpoint except GET /health and GET /api/v1/tokens.
Body
Parameters for building the route instruction as a CPI target. Like InstructionsRequest, but the signer is a calling program's PDA (the on-chain authority that will invoke_signed into route) rather than a wallet.
The calling program's PDA authority — owns the token accounts and signs the swap via invoke_signed inside the integrating program.
"EJxE7RDaP5pmoVzzHRb4fufCNq3wsCgdUbJ8PCXHZNUP"
"So11111111111111111111111111111111111111112"
"uSd2czE61Evaf76RNbq4KPpXnkiL3irdzgLFUMe3NoG"
Amount in the smallest token units.
"1000000000"
ExactIn, ExactOut "ExactIn"
50
Response
Route CPI account list built successfully.
true
The route instruction shaped for a CPI caller. Forward routeInstruction.accounts into your program's route CPI and sign with the PDA seeds. requiredTokenAccounts are the ATAs the authority PDA must own and fund before the CPI runs — this builder emits no ATA-create or wrap/unwrap instructions.