Custom Fee

Returns a base64-encoded string representing the transaction which has an instruction for custom fee.

API Endpoint: /fee/custom

Request Method: GET

Description: This API endpoint returns a base64-encoded string representing the transaction which has an instruction for custom fee.

Request URL:

https://api.spiderswap.io/spider-api/v1/fee/custom

Request Headers:

accept: application/json
X-API-KEY: YOUR_API_KEY

Example Request:

curl --request GET \
     --url 'https://api.spiderswap.io/spider-api/v1/fee/custom?payer=Gpof9Z3hsGUucMQKpZ4kLoEdT1NZnQAmMQPQstbhs4tt&receiver=HDj2aKBxY8vhMcthHZq3Y2mjic9Nb852D4eBhPMaCNsp&lamports=10000' \
     --header 'X-API-KEY: YOUR_API_KEY' \
     --header 'accept: text/plain'

Response: A base64-encoded string representing the transaction which contains an instruction for custom fee.

Example Response:

{
    "success": true,
    "data": {
        "feeTx": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAED6x5bo8w8sDr7S/2gO5733ajGvTfxrakIdHa8nKXxk33w/XsUA9h7BLrfFISjx9FFaZM6JQf0XX99oNchhgpUPwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAq4SP0q+XoDJjSp9XYyXHOvduWX50dcmxtFWnH/iwIo0BAgIAAQwCAAAAZAAAAAAAAAA="
    }
}