Transaction
Build swap transaction (base input)
Generate a serialized swap transaction for a fixed input amount. Requires a successful compute response from /compute/swap-base-in.
post/transaction/swap-base-in
Request
- Base URLhttps://api.raydium.io
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"wallet": "11111111111111111111111111111111",
"txVersion": "V0",
"computeUnitPriceMicroLamports": "1000",
"inputAccount": "TokenAccount1111111111111111111111111111111111",
"outputAccount": "TokenAccount2222222222222222222222222222222222",
"referrerWallet": "ReferrerWallet1111111111111111111111111111111111"
}Response
Serialized transaction built successfully.
Example response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"success": true,
"version": "V1"
}Changes
No recorded changes to this operation across all 1 revision of this API.