User information

Get details about backpack users

Get details of a user from their public key

GET https://xnft-api-server.xnfts.dev//v1/users/fromPubkey

Query Parameters

Name
Type
Description

publicKey*

String

Public key of the user

blockchain*

Which blockchain the query is for (solana or ethereum)

{
    "user":{
        "id":"user-id",
        "username":"username",
        "public_keys":[{
            "blockchain": "solana",
            "public_key":"public-key"
            }
        ]
    }
}

Get details of a user from their username

GET https://xnft-api-server.xnfts.dev/v1/users/fromUsername

Query Parameters

Name
Type
Description

username*

String

username of user

{
    "user":{
        "id":"74584633-13f1-42d4-8bdf-a544dd09be94",
        "username":"kirat421",
        "publicKeys":[{
            "blockchain":"solana",
            "publicKey":"3WB7TRbqP6sDGZmQPbJk9huyDdqfpNfpdaJ7YAK5iAf1"
        }],
        "image":"https://avatars.xnfts.dev/v1/kirat421"
    }
}

Get details of a user from their id

GET https://xnft-api-server.xnfts.dev/v1/users

Query Parameters

Name
Type
Description

user_id*

String

id of the user

{
    "user":{
        "id":"74584633-13f1-42d4-8bdf-a544dd09be94",
        "username":"kirat421",
        "publicKeys":[{
            "blockchain":"solana",
            "publicKey":"3WB7TRbqP6sDGZmQPbJk9huyDdqfpNfpdaJ7YAK5iAf1"
            }
        ],
        "image":"https://avatars.xnfts.dev/v1/kirat421"
    }
}

Last updated