cURL
curl --request POST \
--url http://localhost:4100/v1/projects/{projectId}/gas-simulations/{actionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mandateId": "<string>",
"gasPolicyId": "<string>",
"recipient": "<string>",
"amountBaseUnits": "<string>",
"deadline": 140737488355328,
"account": "<string>",
"agent": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mandateId: '<string>',
gasPolicyId: '<string>',
recipient: '<string>',
amountBaseUnits: '<string>',
deadline: 140737488355328,
account: '<string>',
agent: '<string>'
})
};
fetch('http://localhost:4100/v1/projects/{projectId}/gas-simulations/{actionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"simulationId": "<string>",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environment": "test",
"account": "<string>",
"agent": "<string>",
"mandateId": "<string>",
"gasPolicyId": "<string>",
"recipient": "<string>",
"amountBaseUnits": "<string>",
"deadline": 123,
"state": "simulated",
"refusalCode": "<string>",
"prepared": {
"actionId": "<string>",
"chainId": 84532,
"core": "<string>",
"asset": "<string>",
"mandateId": "<string>",
"gasPolicyId": "<string>",
"agent": "<string>",
"recipient": "<string>",
"amountBaseUnits": "<string>",
"relayerMode": "gol",
"maxChargeWei": "<string>",
"digest": "<string>",
"typedData": {
"domain": {
"name": "GOL Mandate",
"version": "3",
"chainId": 84532,
"verifyingContract": "<string>"
},
"types": {
"GasActionAuthorization": [
{
"name": "<string>",
"type": "<string>"
}
]
},
"primaryType": "GasActionAuthorization",
"message": {
"mandateId": "<string>",
"actionTag": 1,
"schemaVersion": 1,
"actionId": "<string>",
"capabilityDigest": "<string>",
"deadline": 123,
"inputHash": "<string>",
"gasPolicyId": "<string>",
"maxCharge": "<string>"
}
}
},
"execution": {
"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",
"relayerMode": "gol",
"submitter": "<string>",
"state": "<string>",
"quote": {
"maxChargeWei": "<string>",
"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>",
"refusalCode": "<string>",
"settledWei": "<string>",
"unpaidWei": "<string>",
"overchargeWei": "<string>"
},
"settlement": {
"kind": "inline",
"outcome": "success",
"gasUnits": "<string>",
"gasPriceWei": "<string>",
"declaredL1FeeWei": "<string>",
"declaredOperatorFeeWei": "<string>",
"chargedWei": "<string>",
"paid": true,
"recipient": "<string>",
"submitter": "<string>"
},
"transaction": {
"to": "<string>",
"data": "<string>",
"chainId": 84532,
"gasLimit": "<string>",
"maxFeePerGasWei": "<string>",
"submitter": "<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>"
}
],
"inclusion": {
"state": "pending",
"workflow": "<string>",
"transactionHash": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"outcome": "<string>",
"observedAt": "2023-11-07T05:31:56Z",
"finalizedAt": "2023-11-07T05:31:56Z"
},
"inclusions": [
{
"state": "pending",
"workflow": "<string>",
"transactionHash": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"outcome": "<string>",
"observedAt": "2023-11-07T05:31:56Z",
"finalizedAt": "2023-11-07T05:31:56Z"
}
]
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"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-simulations
Post v1projects gas simulations
cURL
curl --request POST \
--url http://localhost:4100/v1/projects/{projectId}/gas-simulations/{actionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mandateId": "<string>",
"gasPolicyId": "<string>",
"recipient": "<string>",
"amountBaseUnits": "<string>",
"deadline": 140737488355328,
"account": "<string>",
"agent": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mandateId: '<string>',
gasPolicyId: '<string>',
recipient: '<string>',
amountBaseUnits: '<string>',
deadline: 140737488355328,
account: '<string>',
agent: '<string>'
})
};
fetch('http://localhost:4100/v1/projects/{projectId}/gas-simulations/{actionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"simulationId": "<string>",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environment": "test",
"account": "<string>",
"agent": "<string>",
"mandateId": "<string>",
"gasPolicyId": "<string>",
"recipient": "<string>",
"amountBaseUnits": "<string>",
"deadline": 123,
"state": "simulated",
"refusalCode": "<string>",
"prepared": {
"actionId": "<string>",
"chainId": 84532,
"core": "<string>",
"asset": "<string>",
"mandateId": "<string>",
"gasPolicyId": "<string>",
"agent": "<string>",
"recipient": "<string>",
"amountBaseUnits": "<string>",
"relayerMode": "gol",
"maxChargeWei": "<string>",
"digest": "<string>",
"typedData": {
"domain": {
"name": "GOL Mandate",
"version": "3",
"chainId": 84532,
"verifyingContract": "<string>"
},
"types": {
"GasActionAuthorization": [
{
"name": "<string>",
"type": "<string>"
}
]
},
"primaryType": "GasActionAuthorization",
"message": {
"mandateId": "<string>",
"actionTag": 1,
"schemaVersion": 1,
"actionId": "<string>",
"capabilityDigest": "<string>",
"deadline": 123,
"inputHash": "<string>",
"gasPolicyId": "<string>",
"maxCharge": "<string>"
}
}
},
"execution": {
"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",
"relayerMode": "gol",
"submitter": "<string>",
"state": "<string>",
"quote": {
"maxChargeWei": "<string>",
"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>",
"refusalCode": "<string>",
"settledWei": "<string>",
"unpaidWei": "<string>",
"overchargeWei": "<string>"
},
"settlement": {
"kind": "inline",
"outcome": "success",
"gasUnits": "<string>",
"gasPriceWei": "<string>",
"declaredL1FeeWei": "<string>",
"declaredOperatorFeeWei": "<string>",
"chargedWei": "<string>",
"paid": true,
"recipient": "<string>",
"submitter": "<string>"
},
"transaction": {
"to": "<string>",
"data": "<string>",
"chainId": 84532,
"gasLimit": "<string>",
"maxFeePerGasWei": "<string>",
"submitter": "<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>"
}
],
"inclusion": {
"state": "pending",
"workflow": "<string>",
"transactionHash": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"outcome": "<string>",
"observedAt": "2023-11-07T05:31:56Z",
"finalizedAt": "2023-11-07T05:31:56Z"
},
"inclusions": [
{
"state": "pending",
"workflow": "<string>",
"transactionHash": "<string>",
"blockHash": "<string>",
"blockNumber": "<string>",
"outcome": "<string>",
"observedAt": "2023-11-07T05:31:56Z",
"finalizedAt": "2023-11-07T05:31:56Z"
}
]
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"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