Skip to main content
POST
/
delegation
/
new
cURL
curl --request POST \
  --url https://api.otim.com/delegation/new \
  --header 'Content-Type: application/json' \
  --data '{
  "signedAuthorization": "0x...",
  "signerAddress": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"
}'
The RLP-encoded 7702 authorization is in the following format: keccak(MAGIC || rlp([chain_id, address, nonce])). An account would need to raw sign over the above hash and submit it as the signedAuthorization input. Here is a script to construct and sign the 7702 the authorization:

Body

application/json
signedAuthorization
string
required

RLP-encoded 7702 signed authorization

Example:

"0x..."

signerAddress
string<address>
required

Signer address to be able to verify signature correctness

Example:

"0xa0Ee7A142d267C1f36714E4a8F75612F20a79720"

Response

201

Delegation created successfully