cURL
curl --request POST \
--url http://localhost:4100/v1/projects/{projectId}/gas-simulations/{actionId}/prepare \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://localhost:4100/v1/projects/{projectId}/gas-simulations/{actionId}/prepare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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>"
}
}
}{
"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 prepare
cURL
curl --request POST \
--url http://localhost:4100/v1/projects/{projectId}/gas-simulations/{actionId}/prepare \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://localhost:4100/v1/projects/{projectId}/gas-simulations/{actionId}/prepare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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>"
}
}
}{
"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
The body is of type object.
Response
Default Response