Web3 pool API

Claim

Add a balance to the specified wallet

POST /Claim/AddUserClaimable

Request Body

NameTypeDescription

userAddress*

String

User Wallet

token*

String

Withdrawal currency

amount*

Number($double)

Withdrawal amount

{
  "requestId": 0
}

Reduce balance to the specified purse

POST /Claim/DecreaseUserClaimable

Request Body

NameTypeDescription

userAddress*

String

User Wallet

token*

String

Withdrawal currency

amount*

Number($double)

Withdrawal amount

{
  "requestId": 0
}

ContractSettings

Add a token to the contract whitelist

POST /ContractSettings/AddTokenToWhitelist

Request Body

NameTypeDescription

token*

String

Currency to add to whitelist

{
  "requestId": 0
}

Info

Get information about the contract

GET /Info/Contract

{
  "address": "string",
  "feePercent": 0,
  "whiteListedTokens": [
    "string"
  ],
  "balances": [
    {
      "currency": "string",
      "total": 0,
      "reserved": 0,
      "free": 0,
      "fee": 0
    }
  ]
}

List of supported tokens

GET /Info/SupportedTokens

[
  {
    "name": "string",
    "contract": "string"
  }
]

Queue

Get request status

GET /Queue/Status/{queueId}

Path Parameters

NameTypeDescription

queueId*

integer

queueId

{
  "error": "string",
  "status": "string"
}

Withdraw

Withdrawing available funds

POST /Withdraw

Request Body

NameTypeDescription

wallet*

string

Recipient's wallet

token*

string

Withdrawal currency

amount*

number($double)

Withdrawal amount

{
  "requestId": 0
}

Schemas

AddTokenToWhitelistModel
{
userAddress*	string
User Wallet

token*	string
Withdrawal currency

amount*	number($double)
Withdrawal amount

}
AddUserClaimbleModel
{
userAddress*	string
User Wallet

token*	string
Withdrawal currency

amount*	number($double)
Withdrawal amount

}
ApiBadRequestResponse
{
errors	{...}
nullable: true
}
Bep20Contract
{
name	string
nullable: true
contract	string
nullable: true
}
ContractBalanceModel
{
currency	string
nullable: true
Currency

total	number($double)
Total contract balance

reserved	number($double)
Reserved for users

free	number($double)
Available balance for withdrawal or reservation

fee	number($double)
Commission from free balance

}
ContractInfoModel
{
address	string
nullable: true
Contract Address

feePercent	number($double)
Commission

whiteListedTokens	[...]
balances	[...]
}
QueryResult
{
requestId	integer($int32)
Request Id

}
QueueResult
{
error	string
nullable: true
Error description

status	string
nullable: true
Request Status

}
WithdrawModel
{
wallet*	string
Recipient's wallet

token*	string
Withdrawal currency

amount*	number($double)
minimum: 0
Withdrawal amount

}

Last updated