POST
/
delegation
/
new
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

Response

201

Delegation created successfully