cURL
curl --request POST \
--url http://localhost:4100/v1/sign-requests/{id}/reject \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/sign-requests/{id}/reject', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"status": "pending",
"intent": {
"kind": "send"
},
"preparation": {
"schemaVersion": 1,
"preparationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestId": "<string>",
"opIndex": 0,
"intentHash": "<string>",
"signerAddress": "<string>",
"anchorAccountId": "<string>",
"account": {
"id": "<string>",
"address": "<string>",
"chainId": 8453,
"index": 123,
"purpose": "<string>"
},
"preparedAt": "2023-11-07T05:31:56Z",
"relayRoute": "/userops",
"operation": {
"intentType": "send",
"userOp": {
"chainId": 8453,
"sender": "<string>",
"nonce": "<string>",
"callData": "<string>",
"signature": "0x",
"entryPoint": "<string>",
"callGasLimit": "<string>",
"verificationGasLimit": "<string>",
"preVerificationGas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"factory": "<string>",
"factoryData": "<string>",
"paymaster": "<string>",
"paymasterData": "<string>",
"paymasterVerificationGasLimit": "<string>",
"paymasterPostOpGasLimit": "<string>"
},
"userOpHash": "<string>",
"riskReducing": true,
"instant": true,
"gasless": true,
"humanSummary": "<string>",
"simulation": {
"willSucceed": true,
"declineReason": "<string>"
},
"swapQuote": {
"chainId": 8453,
"toChainId": 8453,
"accountAddress": "<string>",
"inputAsset": "<string>",
"outputAsset": "<string>",
"amountInRaw": "<string>",
"estimatedOutRaw": "<string>",
"minimumOutRaw": "<string>"
},
"gasPermit": {
"estimatedFee": 123
},
"usdtApproval": "<unknown>"
},
"grant": {
"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>"
}
},
"summary": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"ops": [
{
"index": 123,
"status": "pending",
"opId": "<string>",
"txHash": "<string>",
"error": "<string>"
}
],
"opCount": 123,
"opId": "<string>",
"txHash": "<string>",
"declineReason": "<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>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Sign requests
Post v1sign requests reject
Browser owner session only. Declines an open request; a settled request returns 409.
cURL
curl --request POST \
--url http://localhost:4100/v1/sign-requests/{id}/reject \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:4100/v1/sign-requests/{id}/reject', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"status": "pending",
"intent": {
"kind": "send"
},
"preparation": {
"schemaVersion": 1,
"preparationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requestId": "<string>",
"opIndex": 0,
"intentHash": "<string>",
"signerAddress": "<string>",
"anchorAccountId": "<string>",
"account": {
"id": "<string>",
"address": "<string>",
"chainId": 8453,
"index": 123,
"purpose": "<string>"
},
"preparedAt": "2023-11-07T05:31:56Z",
"relayRoute": "/userops",
"operation": {
"intentType": "send",
"userOp": {
"chainId": 8453,
"sender": "<string>",
"nonce": "<string>",
"callData": "<string>",
"signature": "0x",
"entryPoint": "<string>",
"callGasLimit": "<string>",
"verificationGasLimit": "<string>",
"preVerificationGas": "<string>",
"maxFeePerGas": "<string>",
"maxPriorityFeePerGas": "<string>",
"factory": "<string>",
"factoryData": "<string>",
"paymaster": "<string>",
"paymasterData": "<string>",
"paymasterVerificationGasLimit": "<string>",
"paymasterPostOpGasLimit": "<string>"
},
"userOpHash": "<string>",
"riskReducing": true,
"instant": true,
"gasless": true,
"humanSummary": "<string>",
"simulation": {
"willSucceed": true,
"declineReason": "<string>"
},
"swapQuote": {
"chainId": 8453,
"toChainId": 8453,
"accountAddress": "<string>",
"inputAsset": "<string>",
"outputAsset": "<string>",
"amountInRaw": "<string>",
"estimatedOutRaw": "<string>",
"minimumOutRaw": "<string>"
},
"gasPermit": {
"estimatedFee": 123
},
"usdtApproval": "<unknown>"
},
"grant": {
"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>"
}
},
"summary": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"ops": [
{
"index": 123,
"status": "pending",
"opId": "<string>",
"txHash": "<string>",
"error": "<string>"
}
],
"opCount": 123,
"opId": "<string>",
"txHash": "<string>",
"declineReason": "<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>"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"correlationId": "<string>"
}
}Authorizations
Response
Success.