cURL
curl --request POST \
--url http://localhost:4100/v1/delegations/build \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "grant",
"mandateId": "<string>",
"mandateVersion": 123,
"name": "<string>",
"delegateeAddress": "<string>",
"budgets": [
{
"token": {
"symbol": "<string>"
},
"amount": 123
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
kind: 'grant',
mandateId: '<string>',
mandateVersion: 123,
name: '<string>',
delegateeAddress: '<string>',
budgets: [{token: {symbol: '<string>'}, amount: 123}]
})
};
fetch('http://localhost:4100/v1/delegations/build', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"permissionId": "<string>",
"account": {
"id": "<string>",
"address": "<string>",
"chainId": 8453
},
"humanSummary": "<string>",
"enableUserOp": {
"chainId": 8453,
"sender": "<string>",
"nonce": "<string>",
"callData": "<string>",
"callGasLimit": "<string>",
"verificationGasLimit": "<string>",
"preVerificationGas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"signature": "0x",
"entryPoint": "<string>",
"factory": "<string>",
"factoryData": "<string>",
"paymaster": "<string>",
"paymasterVerificationGasLimit": "<string>",
"paymasterPostOpGasLimit": "<string>",
"paymasterData": "<string>"
},
"userOpHash": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Delegations
Post v1delegationsbuild
Owner session required. Builds an unsigned operation only after mandate provenance and live chain checks.
cURL
curl --request POST \
--url http://localhost:4100/v1/delegations/build \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "grant",
"mandateId": "<string>",
"mandateVersion": 123,
"name": "<string>",
"delegateeAddress": "<string>",
"budgets": [
{
"token": {
"symbol": "<string>"
},
"amount": 123
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
kind: 'grant',
mandateId: '<string>',
mandateVersion: 123,
name: '<string>',
delegateeAddress: '<string>',
budgets: [{token: {symbol: '<string>'}, amount: 123}]
})
};
fetch('http://localhost:4100/v1/delegations/build', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"permissionId": "<string>",
"account": {
"id": "<string>",
"address": "<string>",
"chainId": 8453
},
"humanSummary": "<string>",
"enableUserOp": {
"chainId": 8453,
"sender": "<string>",
"nonce": "<string>",
"callData": "<string>",
"callGasLimit": "<string>",
"verificationGasLimit": "<string>",
"preVerificationGas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"signature": "0x",
"entryPoint": "<string>",
"factory": "<string>",
"factoryData": "<string>",
"paymaster": "<string>",
"paymasterVerificationGasLimit": "<string>",
"paymasterPostOpGasLimit": "<string>",
"paymasterData": "<string>"
},
"userOpHash": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Authorizations
Body
application/json