List all Wallets in a Project

To retrieve and list all wallets in a project, send a GET request to the /wallet/<project_name>/wallets endpoint.

List all wallets in a project

GET https://api.playfix.io/wallet/<project_name>/wallets

Path Parameters

Name
Type
Description

project_name*

String

The name of the project that contains the wallet. It begins with "project/" followed by a ULID.

Example: projects/01gfav9m1c4zd6eq154th2pafz

Query Parameters

Name
Type
Description

pageToken

String

Page token for next page. You can get this value from the nextPageToken field of a previous response.

pageSize

String

Max number of projects to return in a single page. Each response will contain one page. This can be any number from 1 to 100.

Headers

Name
Type
Description

Authorization*

String

Bearer <your_access_token>

{
  "projectWallets":[
    {
      "name": "wallets/01ggpx9z7z5tzn65c10z0xvyqw",
      "title": "Airdrop",
      "description":"My airdrop wallet",
      "project":"projects/01gfv5g90rd26redcnygvj9q3a",
      "network":"NETWORK_POLYGON_MUMBAI",
      "address":"0xeDab54d4059360fF030E70591EA6844b11E1717e",
      "password":""
    },
    {
      "name": "wallets/01ggpkj6gs2qtaykq4v6dqy16x",
      "title": "Moonar",
      "description": "My moon game wallet.",
      "project": "projects/01gfv5g90rd26redcnygvj9q3a",
      "network": "NETWORK_POLYGON_MUMBAI",
      "address": "0xfa3492e3044AF1e70e8Be6cD3ff80CAB582B2Dd5",
      "password": ""
    }
  ],
  "nextPageToken": "wallets/01ggpkj6gs2qtaykq4v6dqy16x"
}

Example cURL API Call

curl --request GET \
  --url 'https://api.playfix.io/wallet/<project_name>/wallets' \
  --header 'Authorization: Bearer <your_access_token>'

Example Python API

import requests

r = requests.get(
    "https://api.playfix.io/twallet/<project_name>/wallets",
    headers = {
        "Authorization": "Bearer <your_access_token>"
        }
    )

print(r.text)

Response

{
  "projectWallets":[
    {
      "name": "wallets/01ggpx9z7z5tzn65c10z0xvyqw",
      "title": "Airdrop", 
      "description": "My airdrop wallet",
      "project":"projects/01gfv5g90rd26redcnygvj9q3a",
      "network":"NETWORK_POLYGON_MUMBAI",
      "address":"0xeDab54d4059360fF030E70591EA6844b11E1717e",
      "password":""
    },
    {
      "name": "wallets/01ggpkj6gs2qtaykq4v6dqy16x",
      "title": "Moonar",
      "description": "My moon game wallet.",
      "project": "projects/01gfv5g90rd26redcnygvj9q3a",
      "network": "NETWORK_POLYGON_MUMBAI",
      "address": "0xfa3492e3044AF1e70e8Be6cD3ff80CAB582B2Dd5",
      "password": ""
    }
  ],
  "nextPageToken": "wallets/01ggpkj6gs2qtaykq4v6dqy16x"
}

Response Fields

  • projectWallets: An array of objects. Each object contains the details of each wallet in a project.

  • nextPageToken: A string that enable you to query the next page if you have multiple wallets.

Use the nextPageToken as the value of the pageToken query parameter to view the next page of results if you have created more than 10 wallets in a project.

Also, you can set the pageSize query parameter to a number between 1 and 100 to increase the default number of tokens returned per page.

Example cURL API Call

curl --request GET \
  --url 'https://api.playfix.io/wallet/<project_name>/wallets?pageSize=100&pageToken=<your_nextPageToken>' \
  --header 'Authorization: Bearer <your_access_token>'

Example Python API Call

import requests

r = requests.get(
    "https://api.playfix.io/wallet/<project_name>/wallets",
    params = {
        "pageToken": "<your_nextPageToken>".
        "pageSize": "100"
        },
    headers = {
        "Authorization": "Bearer <your_access_token>"
        }
    )

print(r.text)

Last updated