curl --request POST --url https://relay.mainnet.kuru.io/relay \
--header "Authorization: Bearer $KURU_RELAY_JWT" \
--header 'Content-Type: application/json' \
--data '{"requestId":"018f5ef2-88a1-7b41-a826-4b679010f87f","method":"wallet.create_batch_trigger","wallet":"0x1111111111111111111111111111111111111111","payload":{"header":{"accountId":"123","market":"0x8121ee960066e4344a213f9ac7502395502aee7a","authNonce":"1","nonce":"1720000000997","deadline":"1720000030","clientOrderId":"0x0000000000000000000000000000000000000000000000000000000000000003","builder":"0x0000000000000000000000000000000000000000","builderFeePps":"0"},"triggerExpiry":"1720003600","conditionSchema":"1","condition":"0x00000001...","conditionHash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","orders":[],"cancelSlotIdxs":["3"],"expectedOrderIds":["31"],"signature":"0x..."},"authorization7702":null}'
Coming soon: conditional orders
Create batch trigger
Register a conditional native-order batch.
curl --request POST --url https://relay.mainnet.kuru.io/relay \
--header "Authorization: Bearer $KURU_RELAY_JWT" \
--header 'Content-Type: application/json' \
--data '{"requestId":"018f5ef2-88a1-7b41-a826-4b679010f87f","method":"wallet.create_batch_trigger","wallet":"0x1111111111111111111111111111111111111111","payload":{"header":{"accountId":"123","market":"0x8121ee960066e4344a213f9ac7502395502aee7a","authNonce":"1","nonce":"1720000000997","deadline":"1720000030","clientOrderId":"0x0000000000000000000000000000000000000000000000000000000000000003","builder":"0x0000000000000000000000000000000000000000","builderFeePps":"0"},"triggerExpiry":"1720003600","conditionSchema":"1","condition":"0x00000001...","conditionHash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","orders":[],"cancelSlotIdxs":["3"],"expectedOrderIds":["31"],"signature":"0x..."},"authorization7702":null}'
Submits
The example shows the complete shape but is not executable until condition data, hashes, nonces, deadlines, and signatures are generated from current state.
wallet.create_batch_trigger, which stores readable native orders and cancellations behind a committed trigger condition.
Conditional-order submission is not a supported live Relay flow. This versioned method is documented for reference; do not use the playground to assume it is available on either network.
string
required
New lowercase UUIDv7 for correlation.
string
default:"wallet.create_batch_trigger"
required
Must be
wallet.create_batch_trigger.string
required
Secondary trading EOA matching the bearer JWT.
object
required
Signed
CreateBatchTriggerIntent with header, triggerExpiry, conditionSchema, condition, conditionHash, orders, cancelSlotIdxs, expectedOrderIds, and signature.object | null
Normally
null after onboarding.condition must hash exactly to conditionHash, and its first four encoded bytes must identify the nonzero, allowlisted conditionSchema. triggerExpiry is a future Unix timestamp within the deployment horizon.
curl --request POST --url https://relay.mainnet.kuru.io/relay \
--header "Authorization: Bearer $KURU_RELAY_JWT" \
--header 'Content-Type: application/json' \
--data '{"requestId":"018f5ef2-88a1-7b41-a826-4b679010f87f","method":"wallet.create_batch_trigger","wallet":"0x1111111111111111111111111111111111111111","payload":{"header":{"accountId":"123","market":"0x8121ee960066e4344a213f9ac7502395502aee7a","authNonce":"1","nonce":"1720000000997","deadline":"1720000030","clientOrderId":"0x0000000000000000000000000000000000000000000000000000000000000003","builder":"0x0000000000000000000000000000000000000000","builderFeePps":"0"},"triggerExpiry":"1720003600","conditionSchema":"1","condition":"0x00000001...","conditionHash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","orders":[],"cancelSlotIdxs":["3"],"expectedOrderIds":["31"],"signature":"0x..."},"authorization7702":null}'