curl --request POST \
--url https://api.otim.com/orchestration/new \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"signedAuthorization": "<string>",
"completionInstructions": [
{
"address": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"chainId": 11155111,
"salt": 1234567890,
"maxExecutions": 10,
"action": "0x838c90f3e8d4892dCfA67721CbbA7C86D3C059ef",
"arguments": "0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"activationSignature": {
"yParity": 0,
"r": "0x...",
"s": "0x..."
},
"nickname": "My cool instruction"
}
],
"instructions": [
{
"address": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"chainId": 11155111,
"salt": 1234567890,
"maxExecutions": 10,
"action": "0x838c90f3e8d4892dCfA67721CbbA7C86D3C059ef",
"arguments": "0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"activationSignature": {
"yParity": 0,
"r": "0x...",
"s": "0x..."
},
"nickname": "My cool instruction"
}
]
}
'Create a new orchestration
curl --request POST \
--url https://api.otim.com/orchestration/new \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"signedAuthorization": "<string>",
"completionInstructions": [
{
"address": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"chainId": 11155111,
"salt": 1234567890,
"maxExecutions": 10,
"action": "0x838c90f3e8d4892dCfA67721CbbA7C86D3C059ef",
"arguments": "0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"activationSignature": {
"yParity": 0,
"r": "0x...",
"s": "0x..."
},
"nickname": "My cool instruction"
}
],
"instructions": [
{
"address": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"chainId": 11155111,
"salt": 1234567890,
"maxExecutions": 10,
"action": "0x838c90f3e8d4892dCfA67721CbbA7C86D3C059ef",
"arguments": "0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"activationSignature": {
"yParity": 0,
"r": "0x...",
"s": "0x..."
},
"nickname": "My cool instruction"
}
]
}
'JWT token for API authentication
Orchestration ID
RLP encoded signed authorization
Completion instructions
Show child attributes
Address of the user
"0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
Chain ID
11155111
Salt to ensure instruction is unique
1234567890
Maximum number of times this instruction can be executed (0 for unlimited)
10
Action contract address
"0x838c90f3e8d4892dCfA67721CbbA7C86D3C059ef"
Arguments to execute on the action contract
"0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
User signature over the activation hash
Show child attributes
Y parity of the signature
0, 1 0
R of the signature
"0x..."
S of the signature
"0x..."
Instruction nickname
"My cool instruction"
Instructions
Show child attributes
Address of the user
"0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
Chain ID
11155111
Salt to ensure instruction is unique
1234567890
Maximum number of times this instruction can be executed (0 for unlimited)
10
Action contract address
"0x838c90f3e8d4892dCfA67721CbbA7C86D3C059ef"
Arguments to execute on the action contract
"0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
User signature over the activation hash
Instruction nickname
"My cool instruction"
Orchestration created successfully