-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathalchemy_requestGasAndPaymasterAndData.yaml
48 lines (48 loc) · 1.41 KB
/
alchemy_requestGasAndPaymasterAndData.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
openapi: 3.1.0
info:
title: alchemy_requestGasAndPaymasterAndData
version: '1.0'
servers:
- url: 'https://{network}.g.alchemy.com/v2/'
variables:
network:
enum:
- eth-mainnet
- eth-sepolia
- eth-goerli
- arb-mainnet
- arb-goerli
- opt-mainnet
- opt-goerli
- polygon-mainnet
- polygon-mumbai
- base-mainnet
- base-goerli
default: eth-mainnet
paths:
/{apiKey}:
post:
tags: []
summary: alchemy_requestGasAndPaymasterAndData
description: Requests gas and coverage for a `UserOperation`. Returns `paymasterAndData` and gas parameters if approved, errors if not. Optionally accepts fee parameter overrides to be used in the `UserOperation`.
operationId: alchemy-requestGasAndPaymasterAndData
parameters:
- $ref: ../components/parameters.yaml#/ApiKey
requestBody:
required: true
content:
application/json:
schema:
$ref: ../evm_body.yaml#/alchemy_requestGasAndPaymasterAndData
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: ../evm_responses.yaml#/alchemy_requestGasAndPaymasterAndData
x-readme:
samples-languages:
- curl
- javascript
- python