cURL
curl --request POST \
--url http://localhost:4100/v1/projects/{projectId}/gas-executions/prepare \
--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
}
'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
})
};
fetch('http://localhost:4100/v1/projects/{projectId}/gas-executions/prepare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"actionId": "<string>",
"chainId": 84532,
"core": "<string>",
"asset": "<string>",
"recipient": "<string>",
"amountBaseUnits": "<string>",
"digest": "<string>",
"typedData": {
"domain": {
"name": "GOL Mandate",
"version": "2",
"chainId": 84532,
"verifyingContract": "<string>"
},
"types": {
"ActionAuthorization": [
{
"name": "<string>",
"type": "<string>"
}
]
},
"primaryType": "ActionAuthorization",
"message": {
"mandateId": "<string>",
"actionTag": 1,
"schemaVersion": 1,
"actionId": "<string>",
"capabilityDigest": "<string>",
"deadline": 123,
"inputHash": "<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 executionsprepare
cURL
curl --request POST \
--url http://localhost:4100/v1/projects/{projectId}/gas-executions/prepare \
--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
}
'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
})
};
fetch('http://localhost:4100/v1/projects/{projectId}/gas-executions/prepare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"actionId": "<string>",
"chainId": 84532,
"core": "<string>",
"asset": "<string>",
"recipient": "<string>",
"amountBaseUnits": "<string>",
"digest": "<string>",
"typedData": {
"domain": {
"name": "GOL Mandate",
"version": "2",
"chainId": 84532,
"verifyingContract": "<string>"
},
"types": {
"ActionAuthorization": [
{
"name": "<string>",
"type": "<string>"
}
]
},
"primaryType": "ActionAuthorization",
"message": {
"mandateId": "<string>",
"actionTag": 1,
"schemaVersion": 1,
"actionId": "<string>",
"capabilityDigest": "<string>",
"deadline": 123,
"inputHash": "<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
Response
Default Response
Pattern:
^0x[0-9a-fA-F]{64}$Available options:
84532 Pattern:
^0x[0-9a-fA-F]{40}$Pattern:
^0x[0-9a-fA-F]{40}$Pattern:
^0x[0-9a-fA-F]{40}$Pattern:
^0x[0-9a-fA-F]{64}$Show child attributes
Show child attributes