1. Get list chains support
Get list chain support
GET
https://api.pos25.app/v1/cf-payment/chain
The API will respond list of blockchain that POS25 support. Information includes name, chain_id, and link logo.
{
"data": [
{
"name": "SCROLL",
"chain_id": 534352,
"logo": "https://s2.coinmarketcap.com/static/img/coins/64x64/26998.png"
},
{
"name": "NAUTILUS",
"chain_id": 22222,
"logo": "https://pbs.twimg.com/profile_images/1626750544642727937/qNCwFLUt_400x400.jpg"
},
{
"name": "BASE",
"chain_id": 8453,
"logo": "https://bridge.base.org/icons/base.svg"
},
{
"name": "SUI",
"chain_id": 101,
"logo": "https://static.atomsolution.vn/sui.png"
}
],
"errors": [],
"msg": "",
"error_code": ""
}
{
"data": {},
"errors": [
{
"field": "Some error message"
}
],
"msg": "",
"error_code": "E_BAD_REQUEST"
}
Let's see how you can call this method either through Curl
or Python
:
curl --location 'https://api.pos25.app/v1/cf-payment/chain' \
--header 'Authorization: Bearer 8d1300ea96d3cca64918f871318864c6'