API Reference

Get / Custom Fee

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

OpenAPI definition

{
  "openapi": "3.1.0",
  "info": {
    "title": "swap",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.carbium.io/api/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/fee/custom": {
      "get": {
        "summary": "Get / Custom Fee",
        "description": "Returns a base64-encoded string representing the transaction which has an instruction for fee amount.",
        "operationId": "get-feecustom",
        "parameters": [
          {
            "name": "payer",
            "in": "query",
            "description": "Address of the payer",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "receiver",
            "in": "query",
            "description": "Address of the receiver",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lamports",
            "in": "query",
            "description": "Fee amount in lamports",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}