diff --git a/graphql/graphql.go b/graphql/graphql.go index 948e1d08ce..f72085dbe1 100644 --- a/graphql/graphql.go +++ b/graphql/graphql.go @@ -895,20 +895,6 @@ func (p *Pending) EstimateGas(ctx context.Context, args struct { return gas, err } -func (p *Pending) EstimateGases(ctx context.Context, args struct { - Data *[]ethapi.CallArgs -}) (*[]hexutil.Uint64, error) { - ret := make([]hexutil.Uint64, 0, len(*args.Data)) - for _, call := range *args.Data { - estimatedGas, err := ethapi.DoEstimateGas(ctx, p.backend, call, rpc.PendingBlockNumber) - if err != nil { - return &ret, nil - } - ret = append(ret, estimatedGas) - } - return &ret, nil -} - // Resolver is the top-level object in the GraphQL hierarchy. type Resolver struct { backend ethapi.Backend diff --git a/graphql/schema.go b/graphql/schema.go index 73ef68e469..5dec10db20 100644 --- a/graphql/schema.go +++ b/graphql/schema.go @@ -292,7 +292,6 @@ const schema string = ` # EstimateGas estimates the amount of gas that will be required for # successful execution of a transaction for the pending state. estimateGas(data: CallData!): Long! - estimateGases(data: [CallData!]): [Long!] } type Query {