cURL
curl --request POST \
--url http://localhost:4100/v1/projects/{projectId}/gas-policies/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionHash": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({draftId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', transactionHash: '<string>'})
};
fetch('http://localhost:4100/v1/projects/{projectId}/gas-policies/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"gasPolicyId": "<string>",
"mandateId": "<string>",
"account": "<string>",
"family": "safe",
"agent": "<string>",
"status": "active",
"maxPerActionWei": "<string>",
"maxTotalWei": "<string>",
"spentWei": "<string>",
"remainingWei": "<string>",
"expiresAt": 123,
"chargeableOutcomesMask": 123,
"recipient": "<string>",
"attester": "<string>",
"relayerMode": "gol",
"submitter": "<string>",
"formulaVersion": 123,
"maxDepth": 123,
"maxActiveDescendants": 123,
"activeDescendants": 123,
"approvalTransactionHash": "<string>",
"revocationTransactionHash": "<string>",
"observedBlockNumber": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"status": "observing",
"transactionHash": "<string>",
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"gasPolicyId": "<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 policiesconfirm
cURL
curl --request POST \
--url http://localhost:4100/v1/projects/{projectId}/gas-policies/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionHash": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({draftId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', transactionHash: '<string>'})
};
fetch('http://localhost:4100/v1/projects/{projectId}/gas-policies/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"gasPolicyId": "<string>",
"mandateId": "<string>",
"account": "<string>",
"family": "safe",
"agent": "<string>",
"status": "active",
"maxPerActionWei": "<string>",
"maxTotalWei": "<string>",
"spentWei": "<string>",
"remainingWei": "<string>",
"expiresAt": 123,
"chargeableOutcomesMask": 123,
"recipient": "<string>",
"attester": "<string>",
"relayerMode": "gol",
"submitter": "<string>",
"formulaVersion": 123,
"maxDepth": 123,
"maxActiveDescendants": 123,
"activeDescendants": 123,
"approvalTransactionHash": "<string>",
"revocationTransactionHash": "<string>",
"observedBlockNumber": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"status": "observing",
"transactionHash": "<string>",
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"gasPolicyId": "<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
Body
application/json
Response
Default Response