\MempoolAPI

July 14, 2024 ยท View on GitHub

MethodHTTP requestDescription
GetMempoolFeePrioritiesGet /extended/v2/mempool/feesGet mempool transaction fee priorities

GetMempoolFeePriorities

MempoolFeePriorities GetMempoolFeePriorities(ctx).Execute()

Get mempool transaction fee priorities

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/cbadawi/go-stacks"
)

func main() {

	configuration :=config.NewConfiguration()
	apiClient := NewAPIClient(configuration)
	resp, r, err := apiClient.MempoolAPI.GetMempoolFeePriorities(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `MempoolAPI.GetMempoolFeePriorities``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetMempoolFeePriorities`: MempoolFeePriorities
	fmt.Fprintf(os.Stdout, "Response from `MempoolAPI.GetMempoolFeePriorities`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetMempoolFeePrioritiesRequest struct via the builder pattern

Return type

MempoolFeePriorities

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]