Skip to main content
POST
getFeeForMessage
Configuración y errores: inicio rápido RPC. Facturación: créditos y límites.

Autorizaciones

api_key
string
query
requerido

Cuerpo

application/json
jsonrpc
enum<string>
predeterminado:2.0
requerido

The JSON-RPC protocol version.

Opciones disponibles:
2.0
Ejemplo:

"2.0"

id
string
predeterminado:1
requerido

A unique identifier for the request.

Ejemplo:

"1"

method
enum<string>
predeterminado:getFeeForMessage
requerido

The name of the RPC method to invoke.

Opciones disponibles:
getFeeForMessage
Ejemplo:

"getFeeForMessage"

params
(string | object)[]
requerido

Parameters for the method.

Base-64 encoded serialized Solana transaction message to calculate the exact fee for.

Ejemplo:

"AQABAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQAA"

Respuesta

200 - application/json

Successfully retrieved the fee for the given message.

jsonrpc
enum<string>

The JSON-RPC protocol version.

Opciones disponibles:
2.0
Ejemplo:

"2.0"

id
string

Identifier matching the request.

Ejemplo:

"1"

result
object

Fee information for the message.