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-4b679010f880","method":"wallet.create_replace_trigger","wallet":"0x1111111111111111111111111111111111111111","payload":{"header":{"accountId":"123","market":"0x8121ee960066e4344a213f9ac7502395502aee7a","authNonce":"1","nonce":"1720000000998","deadline":"1720000030","clientOrderId":"0x0000000000000000000000000000000000000000000000000000000000000004","builder":"0x0000000000000000000000000000000000000000","builderFeePps":"0"},"triggerExpiry":"1720003600","conditionSchema":"1","condition":"0x00000001...","conditionHash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","packedOps":"0x<one-or-more-32-byte-words>","expectedOrderIds":["31"],"signature":"0x..."},"authorization7702":null}'
Coming soon: conditional orders
Create packed replacement trigger
Register a conditional compact maker-slot replacement.
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-4b679010f880","method":"wallet.create_replace_trigger","wallet":"0x1111111111111111111111111111111111111111","payload":{"header":{"accountId":"123","market":"0x8121ee960066e4344a213f9ac7502395502aee7a","authNonce":"1","nonce":"1720000000998","deadline":"1720000030","clientOrderId":"0x0000000000000000000000000000000000000000000000000000000000000004","builder":"0x0000000000000000000000000000000000000000","builderFeePps":"0"},"triggerExpiry":"1720003600","conditionSchema":"1","condition":"0x00000001...","conditionHash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","packedOps":"0x<one-or-more-32-byte-words>","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_replace_trigger, which stores compact packed slot operations 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_replace_trigger"
required
Must be
wallet.create_replace_trigger.string
required
Secondary trading EOA matching the bearer JWT.
object
required
Signed
CreateReplaceTriggerIntent with header, triggerExpiry, conditionSchema, condition, conditionHash, packedOps, expectedOrderIds, and signature.object | null
Normally
null after onboarding.packedOps contains one to 256 canonical 32-byte words. expectedOrderIds must contain one binding per word. Condition validation is identical to wallet.create_batch_trigger.
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-4b679010f880","method":"wallet.create_replace_trigger","wallet":"0x1111111111111111111111111111111111111111","payload":{"header":{"accountId":"123","market":"0x8121ee960066e4344a213f9ac7502395502aee7a","authNonce":"1","nonce":"1720000000998","deadline":"1720000030","clientOrderId":"0x0000000000000000000000000000000000000000000000000000000000000004","builder":"0x0000000000000000000000000000000000000000","builderFeePps":"0"},"triggerExpiry":"1720003600","conditionSchema":"1","condition":"0x00000001...","conditionHash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","packedOps":"0x<one-or-more-32-byte-words>","expectedOrderIds":["31"],"signature":"0x..."},"authorization7702":null}'