🤖Public APIs
This section focuses on a API implementation. We would like to allow for all developers to be able to integrate, even beyond the scope of web3.
Links
sandbox: https://sandboxapi.0xkyc.id/docs
APIs
API endpoint to get JWT format accessToken. See below for example requests and responses.
test1
123456789123456789
POST /auth HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"apikey": "test1",
"apiSecret": "123456789123456789"
}
{
"accessToken": "text"
}
API endpoint to check whether a specified wallet address holds any SBT tokens on a given blockchain chain. The wallet address should be provided in hex code format starts with 0x
. The user can specify the chain they're checking against. Returns a boolean indicating presence or absence of SBT tokens, or an error message in case of invalid parameters or unauthorized issue. See below for example requests and responses.
GET /api/v1/hasSoul?walletAddress=text&chainName=ethereum-goerli HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
{
"result": true
}
API endpoint to get UUID on a given wallet address and blockchain chain. The wallet address should be provided in hex code format starts with 0x
. The user can specify the chain they're checking against. Returns a string format uuid or empty string, or an error message in case of invalid parameters or unauthorized issue. See below for example requests and responses.
GET /api/v1/uuid?walletAddress=text&chainName=ethereum-goerli HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
{
"result": "text"
}
API endpoint to get address, chainId, chainName pairs which has the same UUID. The uuid should be provided in uuid format. Returns an array of {address, chainId, chainName}, or an error message in case of invalid parameters or unauthorized issue. See below for example requests and responses.
GET /api/v1/pairs?uuid=null HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
[
{
"address": "text",
"chainId": 1,
"chainName": "text"
}
]
Last updated