cURL
curl --request POST \
--url http://localhost:4100/v1/projects/{projectId}/gas-executions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"mandateId": "<string>",
"gasPolicyId": "<string>",
"recipient": "<string>",
"amountBaseUnits": "<string>",
"deadline": 140737488355328,
"agentSignature": "<string>"
}
'const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
mandateId: '<string>',
gasPolicyId: '<string>',
recipient: '<string>',
amountBaseUnits: '<string>',
deadline: 140737488355328,
agentSignature: '<string>'
})
};
fetch('http://localhost:4100/v1/projects/{projectId}/gas-executions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contractProjectId": "<string>",
"environment": "test",
"chainId": 123,
"account": "<string>",
"agent": "<string>",
"core": "<string>",
"accountProfileId": "<string>",
"installEpoch": "<string>",
"mandateId": "<string>",
"actionId": "<string>",
"gasPolicyId": "<string>",
"payer": "owner_reimbursement",
"state": "<string>",
"quote": {
"acceptedOwnerMaximumWei": "<string>",
"maximumNetworkWei": "<string>",
"maximumGolExposureWei": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"formulaVersion": 123,
"chargeableOutcomesMask": 123
},
"transactionHashes": [
"<string>"
],
"broadcasts": [
{
"transactionHash": "<string>",
"providerId": "<string>",
"outcome": "accepted",
"observedAt": "2023-11-07T05:31:56Z"
}
],
"receipt": {
"transactionHash": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"finalizedBlockNumber": "<string>",
"outcome": "success",
"gasUsed": "<string>",
"effectiveGasPrice": "<string>",
"executionWei": "<string>",
"l1DataWei": "<string>",
"operatorWei": "<string>",
"totalNetworkWei": "<string>",
"eligibleOwnerWei": "<string>",
"golLossWei": "<string>",
"developerCostWei": "<string>"
},
"claimReceipt": {
"claimTransactionHash": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"finalizedBlockNumber": "<string>",
"collectedWei": "<string>",
"golClaimNetworkCostWei": "<string>",
"status": "collected"
},
"ledger": [
{
"category": "<string>",
"amountWei": "<string>",
"transactionHash": "<string>"
}
],
"disputes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "open",
"reason": "<string>",
"openedAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z",
"resolution": "<string>"
}
]
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contractProjectId": "<string>",
"environment": "test",
"chainId": 123,
"account": "<string>",
"agent": "<string>",
"core": "<string>",
"accountProfileId": "<string>",
"installEpoch": "<string>",
"mandateId": "<string>",
"actionId": "<string>",
"gasPolicyId": "<string>",
"payer": "owner_reimbursement",
"state": "<string>",
"quote": {
"acceptedOwnerMaximumWei": "<string>",
"maximumNetworkWei": "<string>",
"maximumGolExposureWei": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"formulaVersion": 123,
"chargeableOutcomesMask": 123
},
"transactionHashes": [
"<string>"
],
"broadcasts": [
{
"transactionHash": "<string>",
"providerId": "<string>",
"outcome": "accepted",
"observedAt": "2023-11-07T05:31:56Z"
}
],
"receipt": {
"transactionHash": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"finalizedBlockNumber": "<string>",
"outcome": "success",
"gasUsed": "<string>",
"effectiveGasPrice": "<string>",
"executionWei": "<string>",
"l1DataWei": "<string>",
"operatorWei": "<string>",
"totalNetworkWei": "<string>",
"eligibleOwnerWei": "<string>",
"golLossWei": "<string>",
"developerCostWei": "<string>"
},
"claimReceipt": {
"claimTransactionHash": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"finalizedBlockNumber": "<string>",
"collectedWei": "<string>",
"golClaimNetworkCostWei": "<string>",
"status": "collected"
},
"ledger": [
{
"category": "<string>",
"amountWei": "<string>",
"transactionHash": "<string>"
}
],
"disputes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "open",
"reason": "<string>",
"openedAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z",
"resolution": "<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-executions
Post v1projects gas executions
cURL
curl --request POST \
--url http://localhost:4100/v1/projects/{projectId}/gas-executions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"mandateId": "<string>",
"gasPolicyId": "<string>",
"recipient": "<string>",
"amountBaseUnits": "<string>",
"deadline": 140737488355328,
"agentSignature": "<string>"
}
'const options = {
method: 'POST',
headers: {
'idempotency-key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
mandateId: '<string>',
gasPolicyId: '<string>',
recipient: '<string>',
amountBaseUnits: '<string>',
deadline: 140737488355328,
agentSignature: '<string>'
})
};
fetch('http://localhost:4100/v1/projects/{projectId}/gas-executions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contractProjectId": "<string>",
"environment": "test",
"chainId": 123,
"account": "<string>",
"agent": "<string>",
"core": "<string>",
"accountProfileId": "<string>",
"installEpoch": "<string>",
"mandateId": "<string>",
"actionId": "<string>",
"gasPolicyId": "<string>",
"payer": "owner_reimbursement",
"state": "<string>",
"quote": {
"acceptedOwnerMaximumWei": "<string>",
"maximumNetworkWei": "<string>",
"maximumGolExposureWei": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"formulaVersion": 123,
"chargeableOutcomesMask": 123
},
"transactionHashes": [
"<string>"
],
"broadcasts": [
{
"transactionHash": "<string>",
"providerId": "<string>",
"outcome": "accepted",
"observedAt": "2023-11-07T05:31:56Z"
}
],
"receipt": {
"transactionHash": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"finalizedBlockNumber": "<string>",
"outcome": "success",
"gasUsed": "<string>",
"effectiveGasPrice": "<string>",
"executionWei": "<string>",
"l1DataWei": "<string>",
"operatorWei": "<string>",
"totalNetworkWei": "<string>",
"eligibleOwnerWei": "<string>",
"golLossWei": "<string>",
"developerCostWei": "<string>"
},
"claimReceipt": {
"claimTransactionHash": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"finalizedBlockNumber": "<string>",
"collectedWei": "<string>",
"golClaimNetworkCostWei": "<string>",
"status": "collected"
},
"ledger": [
{
"category": "<string>",
"amountWei": "<string>",
"transactionHash": "<string>"
}
],
"disputes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "open",
"reason": "<string>",
"openedAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z",
"resolution": "<string>"
}
]
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contractProjectId": "<string>",
"environment": "test",
"chainId": 123,
"account": "<string>",
"agent": "<string>",
"core": "<string>",
"accountProfileId": "<string>",
"installEpoch": "<string>",
"mandateId": "<string>",
"actionId": "<string>",
"gasPolicyId": "<string>",
"payer": "owner_reimbursement",
"state": "<string>",
"quote": {
"acceptedOwnerMaximumWei": "<string>",
"maximumNetworkWei": "<string>",
"maximumGolExposureWei": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"formulaVersion": 123,
"chargeableOutcomesMask": 123
},
"transactionHashes": [
"<string>"
],
"broadcasts": [
{
"transactionHash": "<string>",
"providerId": "<string>",
"outcome": "accepted",
"observedAt": "2023-11-07T05:31:56Z"
}
],
"receipt": {
"transactionHash": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"finalizedBlockNumber": "<string>",
"outcome": "success",
"gasUsed": "<string>",
"effectiveGasPrice": "<string>",
"executionWei": "<string>",
"l1DataWei": "<string>",
"operatorWei": "<string>",
"totalNetworkWei": "<string>",
"eligibleOwnerWei": "<string>",
"golLossWei": "<string>",
"developerCostWei": "<string>"
},
"claimReceipt": {
"claimTransactionHash": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"finalizedBlockNumber": "<string>",
"collectedWei": "<string>",
"golClaimNetworkCostWei": "<string>",
"status": "collected"
},
"ledger": [
{
"category": "<string>",
"amountWei": "<string>",
"transactionHash": "<string>"
}
],
"disputes": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "open",
"reason": "<string>",
"openedAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z",
"resolution": "<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.
Headers
Pattern:
^0x[0-9a-fA-F]{64}$Path Parameters
Body
application/json
Pattern:
^0x[0-9a-fA-F]{64}$Pattern:
^0x[0-9a-fA-F]{64}$Pattern:
^0x[0-9a-fA-F]{40}$Pattern:
^[1-9][0-9]{0,77}$Required range:
1 <= x <= 281474976710655Pattern:
^0x[0-9a-fA-F]{130}$Response
Default Response
Available options:
test Available options:
owner_reimbursement Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes