curl --request POST \
--url https://api.otim.com/orchestration/build \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"completionInstructions": [
{
"chainId": 11155111,
"salt": 1234567890,
"maxExecutions": 10,
"actionArguments": {
"refuelERC20": {
"token": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"target": "0x23618e81E3f5cdF7f54C3d65f7FBc0aBf5B21E8f",
"threshold": 1000000000000000000,
"endBalance": 2000000000000000000,
"fee": {
"token": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"maxBaseFeePerGas": 0,
"maxPriorityFeePerGas": 15000000000,
"executionFee": 0
}
}
},
"setEphemeralTarget": true
}
],
"instructions": [
{
"chainId": 11155111,
"salt": 1234567890,
"maxExecutions": 10,
"actionArguments": {
"refuelERC20": {
"token": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"target": "0x23618e81E3f5cdF7f54C3d65f7FBc0aBf5B21E8f",
"threshold": 1000000000000000000,
"endBalance": 2000000000000000000,
"fee": {
"token": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"maxBaseFeePerGas": 0,
"maxPriorityFeePerGas": 15000000000,
"executionFee": 0
}
}
},
"setEphemeralTarget": true
}
],
"metadata": {},
"payerAddress": "<string>",
"dueDate": "2023-11-07T05:31:56Z",
"maxRuns": 123
}
'{
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subOrgId": "<string>",
"walletId": "<string>",
"ephemeralWalletAddress": "<string>",
"completionInstructions": [
{
"address": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"chainId": 11155111,
"salt": 1234567890,
"maxExecutions": 10,
"action": "0x838c90f3e8d4892dCfA67721CbbA7C86D3C059ef",
"arguments": "0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"actionName": "sweepDepositERC4626"
}
],
"instructions": [
{
"address": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"chainId": 11155111,
"salt": 1234567890,
"maxExecutions": 10,
"action": "0x838c90f3e8d4892dCfA67721CbbA7C86D3C059ef",
"arguments": "0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"actionName": "sweepDepositERC4626"
}
]
}Build an orchestration with ephemeral instructions
curl --request POST \
--url https://api.otim.com/orchestration/build \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"completionInstructions": [
{
"chainId": 11155111,
"salt": 1234567890,
"maxExecutions": 10,
"actionArguments": {
"refuelERC20": {
"token": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"target": "0x23618e81E3f5cdF7f54C3d65f7FBc0aBf5B21E8f",
"threshold": 1000000000000000000,
"endBalance": 2000000000000000000,
"fee": {
"token": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"maxBaseFeePerGas": 0,
"maxPriorityFeePerGas": 15000000000,
"executionFee": 0
}
}
},
"setEphemeralTarget": true
}
],
"instructions": [
{
"chainId": 11155111,
"salt": 1234567890,
"maxExecutions": 10,
"actionArguments": {
"refuelERC20": {
"token": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"target": "0x23618e81E3f5cdF7f54C3d65f7FBc0aBf5B21E8f",
"threshold": 1000000000000000000,
"endBalance": 2000000000000000000,
"fee": {
"token": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"maxBaseFeePerGas": 0,
"maxPriorityFeePerGas": 15000000000,
"executionFee": 0
}
}
},
"setEphemeralTarget": true
}
],
"metadata": {},
"payerAddress": "<string>",
"dueDate": "2023-11-07T05:31:56Z",
"maxRuns": 123
}
'{
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subOrgId": "<string>",
"walletId": "<string>",
"ephemeralWalletAddress": "<string>",
"completionInstructions": [
{
"address": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"chainId": 11155111,
"salt": 1234567890,
"maxExecutions": 10,
"action": "0x838c90f3e8d4892dCfA67721CbbA7C86D3C059ef",
"arguments": "0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"actionName": "sweepDepositERC4626"
}
],
"instructions": [
{
"address": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
"chainId": 11155111,
"salt": 1234567890,
"maxExecutions": 10,
"action": "0x838c90f3e8d4892dCfA67721CbbA7C86D3C059ef",
"arguments": "0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"actionName": "sweepDepositERC4626"
}
]
}JWT token for API authentication
Instructions to complete the orchestration
Show child attributes
Chain ID
11155111
Salt to ensure instruction is unique
1234567890
Maximum number of times this instruction can be executed
10
Show child attributes
Show child attributes
ERC20 token to refuel the recipient with
"0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
address of the refuel recipient
"0x23618e81E3f5cdF7f54C3d65f7FBc0aBf5B21E8f"
if the balance of the recipient is below this threshold, the refuel will be executed
1000000000000000000
the balance the recipient will have after the refuel is executed
2000000000000000000
Show child attributes
Address of the token used for fee payment
"0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
Maximum base fee per gas (in wei, set to 0 to take network base fee at execution time)
0
Maximum base fee per gas (in wei)
15000000000
Execution fee (set to 0 since this field isn't being utilized yet)
0
Whether to set the ephemeral account as target for the action arguments
true
Instructions to receive the orchestration
Show child attributes
Chain ID
11155111
Salt to ensure instruction is unique
1234567890
Maximum number of times this instruction can be executed
10
Show child attributes
Show child attributes
ERC20 token to refuel the recipient with
"0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
address of the refuel recipient
"0x23618e81E3f5cdF7f54C3d65f7FBc0aBf5B21E8f"
if the balance of the recipient is below this threshold, the refuel will be executed
1000000000000000000
the balance the recipient will have after the refuel is executed
2000000000000000000
Show child attributes
Address of the token used for fee payment
"0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
Maximum base fee per gas (in wei, set to 0 to take network base fee at execution time)
0
Maximum base fee per gas (in wei)
15000000000
Execution fee (set to 0 since this field isn't being utilized yet)
0
Whether to set the ephemeral account as target for the action arguments
true
Orchestration metadata as arbitrary JSON
Address of the payer
Due date for the orchestration
Maximum number of times the orchestration can be executed
Orchestration built successfully
Orchestration ID
Turnkey sub-organization ID
Turnkey wallet ID
Ephemeral wallet address
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"
Name of the action
refuel, transfer, refuelERC20, transferERC20, uniswapV3ExactInput, deactivateInstruction, sweepCCTP, transferCCTP, sweep, sweepERC20, sweepUniswapV3, depositERC4626, sweepDepositERC4626, withdrawERC4626, sweepWithdrawERC4626, callOnce "sweepDepositERC4626"
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"
Name of the action
refuel, transfer, refuelERC20, transferERC20, uniswapV3ExactInput, deactivateInstruction, sweepCCTP, transferCCTP, sweep, sweepERC20, sweepUniswapV3, depositERC4626, sweepDepositERC4626, withdrawERC4626, sweepWithdrawERC4626, callOnce "sweepDepositERC4626"