Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit c1f6828

Browse files
authored
Change EstimateFee from POST to GET (#28)
1 parent ec979d4 commit c1f6828

File tree

6 files changed

+45
-72
lines changed

6 files changed

+45
-72
lines changed

gen/go/coinbase/cloud/clients/v1/doc.go

+11-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/go/coinbase/cloud/clients/v1/protocol_client.go

+1-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/go/coinbase/cloud/protocols/v1/protocols.pb.go

+29-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/go/coinbase/cloud/protocols/v1/protocols.pb.gw.go

+2-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/openapiv2/coinbase/cloud/protocols/v1/protocols.swagger.json

+1-10
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
}
201201
},
202202
"/v1/{networkName}:estimateFee": {
203-
"post": {
203+
"get": {
204204
"summary": "EstimateFee",
205205
"description": "Estimates the current network fee for the specified Network. For EVM Networks, this corresponds to the gas_price, max_fee_per_gas, and max_priority_fee_per_gas.",
206206
"operationId": "ProtocolService_EstimateFee",
@@ -226,15 +226,6 @@
226226
"required": true,
227227
"type": "string",
228228
"pattern": "networks/[^/]+"
229-
},
230-
{
231-
"name": "body",
232-
"in": "body",
233-
"required": true,
234-
"schema": {
235-
"type": "object",
236-
"description": "The request message for EstimateFee."
237-
}
238229
}
239230
],
240231
"tags": [

protos/services/coinbase/cloud/protocols/v1/protocols.proto

+1-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ service ProtocolService {
8181
// corresponds to the gas_price, max_fee_per_gas, and max_priority_fee_per_gas.
8282
rpc EstimateFee(EstimateFeeRequest) returns (EstimateFeeResponse) {
8383
option (google.api.http) = {
84-
post: "/v1/{network=networks/*}:estimateFee"
85-
body: "*"
84+
get: "/v1/{network=networks/*}:estimateFee"
8685
};
8786
option (google.api.method_signature) = "network";
8887
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {

0 commit comments

Comments
 (0)