eth/backend.go
func (b *backendInstance) SuggestGasPrice(
	ctx context.Context) (*big.Int, error) {
	ctx2, cancel := b.addTimeout(ctx)
	defer cancel()

	gasPrice, err := b.conn.ethClient().SuggestGasPrice(ctx2)
	if err != nil {
		return nil, fmt.Errorf("failed to get"+
			" suggested gas price: %s", err)
	}
	return gasPrice, err
}
func (b *backendInstance) SuggestGasPrice(
	ctx context.Context) (*big.Int, error) {
	ctx2, cancel := b.addTimeout(ctx)
	defer cancel()

	gasPrice, err := b.conn.ethClient().SuggestGasPrice(ctx2)
	if err != nil {
		return nil, fmt.Errorf("failed to get"+
			" suggested gas price: %s", err)
	}
	return gasPrice, err
}
func ( b * backendInstance ) SuggestGasPrice ( ctx context . Context ) ( * big . Int , error ) { ctx2 , cancel := b . addTimeout ( ctx ) defer cancel ( ) gasPrice , err := b . conn . ethClient ( ) . SuggestGasPrice ( ctx2 ) if err != nil { return nil , fmt . Errorf ( " " + " " , err ) } return gasPrice , err }
// SuggestGasPrice retrieves the currently suggested gas price to allow a timely
// execution of a transaction.
SuggestGasPrice retrieves the currently suggested gas price to allow a timely execution of a transaction .