# First, you need a base64 encoded message.
# This typically involves creating a transaction, compiling its message,
# and then base64 encoding the serialized message.
# The example message below is illustrative.
# Replace "MESSAGE_BASE64_ENCODED" with your actual encoded message.
curl https://mainnet.helius-rpc.com/?api-key=<api-key> -X POST -H "Content-Type: application/json" -d \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "getFeeForMessage",
"params": [
"MESSAGE_BASE64_ENCODED", // Replace with your actual base64 encoded message
{ "commitment": "processed" }
]
}'