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"
}
}
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"
}
Retrieves details of a specific gas station.
Endpoint: GET {{base_url}}/accounts/gas-station/:account_id
Parameters:
account_id
(path): The ID of the gas stationExample Request:
GET {{base_url}}/accounts/gas-station/6189e76a93f2e543b9b0c555