Gas Stations are wallets with native tokens use to pay for transaction costs

Create Gas Station

Creates a new gas station for funding transactions on a specific network.

Endpoint: POST {{base_url}}/accounts/gas-station/create

Request Body:

{
  "network": "ETH",
  "account_id": "6189e76a93f2e543b9b0c123"
}

Response:

{
  "status": "success",
  "status_code": "200",
  "message": "Gas Station Created Successfully!",
  "data": {
    "_id": "6189e76a93f2e543b9b0c555",
    "user_id": "6189e76a93f2e543b9b0c456",
    "network": "ETH",
    "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4",
    "createdAt": "2023-01-21T08:15:30.123Z",
    "updatedAt": "2023-01-21T08:15:30.123Z"
  }
}

Get All Gas Stations

Retrieves all gas stations associated with the authenticated user.

Endpoint: GET {{base_url}}/accounts/gas-station/all

Response:

{
  "data": [
    {
      "_id": "6189e76a93f2e543b9b0c555",
      "user_id": "6189e76a93f2e543b9b0c456",
      "network": "ETH",
      "address": "0x5B38Da6a701c568545dCfcB03FcB875f56beddC4",
      "createdAt": "2023-01-21T08:15:30.123Z",
      "updatedAt": "2023-01-21T08:15:30.123Z"
    },
    {
      "_id": "6189e76a93f2e543b9b0c556",
      "user_id": "6189e76a93f2e543b9b0c456",
      "network": "BTC",
      "address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
      "createdAt": "2023-01-22T10:45:20.456Z",
      "updatedAt": "2023-01-22T10:45:20.456Z"
    }
  ],
  "status": true,
  "message": "Get All Gas Stations"
}

Get Gas Station By ID

Retrieves details of a specific gas station.

Endpoint: GET {{base_url}}/accounts/gas-station/:account_id

Parameters:

Example Request:

GET {{base_url}}/accounts/gas-station/6189e76a93f2e543b9b0c555