Adds a new Safe delegate with a custom label. Calls with same delegate but different label or
signer will update the label or delegator if a different one is provided
For the signature we are using TOTP with `T0=0` and `Tx=3600`. TOTP is calculated by taking the
Unix UTC epoch time (no milliseconds) and dividing by 3600 (natural division, no decimals)
To generate the signature, this hash needs to be signed: keccak(checksummed address + str(int(current_epoch //
3600)))
As an example, if the 0x132512f995866CcE1b0092384A6118EDaF4508Ff delegate is added and epoch=1586779140:
- `TOTP = epoch // 3600 = 1586779140 // 3600 = 440771`
- keccak("0x132512f995866CcE1b0092384A6118EDaF4508Ff440771") would be the hash a Safe owner would
need to sign.`
delegates
Delegates_Create is an example object payload from Safe (Gnosis Safe), with 9 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
{
"operationId": "delegates_create",
"method": "POST",
"path": "/tx-service/eth/api/v1/delegates/",
"summary": "",
"description": "Adds a new Safe delegate with a custom label. Calls with same delegate but different label or\nsigner will update the label or delegator if a different one is provided\nFor the signature we are using TOTP with `T0=0` and `Tx=3600`. TOTP is calculated by taking the\nUnix UTC epoch time (no milliseconds) and dividing by 3600 (natural division, no decimals)\nTo generate the signature, this hash needs to be signed: keccak(checksummed address + str(int(current_epoch //\n3600)))\nAs an example, if the\u00a00x132512f995866CcE1b0092384A6118EDaF4508Ff\u00a0delegate is added and\u00a0epoch=1586779140:\n - `TOTP = epoch // 3600 = 1586779140 // 3600 = 440771`\n - keccak(\"0x132512f995866CcE1b0092384A6118EDaF4508Ff440771\") would be the hash a Safe owner would\n need to sign.`",
"tags": [
"delegates"
],
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Delegate"
}
}
},
"required": true
},
"responses": {
"202": {
"description": "Accepted",
"content": {}
},
"400": {
"description": "Malformed data",
"content": {}
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.