Skip to main content
POST
/
instruction
/
deactivate
cURL
curl --request POST \
  --url https://api.otim.com/instruction/deactivate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
  "chainId": 11155111,
  "salt": 1234567890,
  "maxExecutions": 10,
  "action": "0x838c90f3e8d4892dCfA67721CbbA7C86D3C059ef",
  "arguments": "0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
  "activationSignature": {
    "yParity": 0,
    "r": "0x...",
    "s": "0x..."
  },
  "nickname": "My cool instruction"
}
'
Here is a code walkthrough on how to simply deactivate an Instruction using its Instruction ID:

Authorizations

Authorization
string
header
required

JWT token for API authentication

Body

application/json
address
string<address>
required

Address of the user

Example:

"0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"

chainId
integer<uint64>
required

Chain ID

Example:

11155111

salt
integer<uint256>
required

Salt to ensure instruction is unique

Example:

1234567890

maxExecutions
integer<uint256>
required

Maximum number of times this instruction can be executed (0 for unlimited)

Example:

10

action
string<address>
required

Action contract address

Example:

"0x838c90f3e8d4892dCfA67721CbbA7C86D3C059ef"

arguments
string<bytes>
required

Arguments to execute on the action contract

Example:

"0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"

activationSignature
object
required

User signature over the activation hash

nickname
string | null

Instruction nickname

Example:

"My cool instruction"

Response

200

Instruction deactivated successfully