cURL
curl --request POST \
--url http://localhost:4100/v1/projects/{projectId}/gas-policies/{gasPolicyId}/revocations/prepare \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"deadline": 140737488355328
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({deadline: 140737488355328})
};
fetch('http://localhost:4100/v1/projects/{projectId}/gas-policies/{gasPolicyId}/revocations/prepare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"gasPolicyId": "<string>",
"account": "<string>",
"family": "safe",
"chainId": 84532,
"core": "<string>",
"nonce": "<string>",
"deadline": 123,
"digest": "<string>",
"directOwnerCall": {
"to": "<string>",
"data": "<string>"
},
"relayed": {
"signing": {
"family": "safe",
"method": "eth_signTypedData_v4",
"typedData": {
"domain": {},
"types": {},
"primaryType": "<string>",
"message": {}
},
"expectedHash": "<string>",
"digest": "<string>",
"signatureFormat": "safe_threshold"
},
"functionName": "revokeGasPolicy"
},
"observedBlockNumber": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}gas-policies
Post v1projects gas policies revocationsprepare
cURL
curl --request POST \
--url http://localhost:4100/v1/projects/{projectId}/gas-policies/{gasPolicyId}/revocations/prepare \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"deadline": 140737488355328
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({deadline: 140737488355328})
};
fetch('http://localhost:4100/v1/projects/{projectId}/gas-policies/{gasPolicyId}/revocations/prepare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"gasPolicyId": "<string>",
"account": "<string>",
"family": "safe",
"chainId": 84532,
"core": "<string>",
"nonce": "<string>",
"deadline": 123,
"digest": "<string>",
"directOwnerCall": {
"to": "<string>",
"data": "<string>"
},
"relayed": {
"signing": {
"family": "safe",
"method": "eth_signTypedData_v4",
"typedData": {
"domain": {},
"types": {},
"primaryType": "<string>",
"message": {}
},
"expectedHash": "<string>",
"digest": "<string>",
"signatureFormat": "safe_threshold"
},
"functionName": "revokeGasPolicy"
},
"observedBlockNumber": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Required range:
1 <= x <= 281474976710655Response
Default Response
Pattern:
^0x[0-9a-fA-F]{64}$Pattern:
^0x[0-9a-fA-F]{40}$family
Option 1 · enum<string>Option 2 · enum<string>Option 3 · enum<string>Option 4 · enum<string>
required
Available options:
safe Available options:
84532 Pattern:
^0x[0-9a-fA-F]{40}$Pattern:
^(0|[1-9][0-9]{0,77})$Pattern:
^0x[0-9a-fA-F]{64}$Show child attributes
Show child attributes
Show child attributes
Show child attributes
Pattern:
^(0|[1-9][0-9]{0,77})$