Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Polymarket Get supported assets

Tài liệu API
https://api.sandbase.ai/v1/api/polymarket/supported-assets

Get supported assets for deposits and withdrawals on the bridge.

Giá
$0.012USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
Không có schema đầu vào
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Polymarket Get supported assets API

Returns the list of chains and tokens that Polymarket supports for deposits and withdrawals on its bridge. It takes no input. Each row gives a chain, a token contract, and a minimum checkout amount in USD.

Use cases

  • Build a deposit screen that lists every chain and token a user can fund a Polymarket account with.
  • Check whether a given token contract on a given chain is accepted before you send funds.
  • Read the token decimals to convert raw on-chain amounts into display amounts.
  • Show users the minimum deposit size for each asset before they start a checkout.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/supported-assets" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The result is returned in outputs[0].data.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "note": "These are the currently supported chains and assets for deposits and withdrawals…",
  "supportedAssets": [
    {
      "chainId": "1",
      "chainName": "Ethereum",
      "minCheckoutUsd": 3,
      "token": {
        "address": "0x0000000000085d4780B73119b644AE5ecd22b376",
        "decimals": 18,
        "name": "TrueUSD",
        "symbol": "TUSD"
      }
    }
  ]
}

Response fields

FieldMeaning
noteShort text from the API that says the list shows the currently supported chains and assets for deposits and withdrawals.
supportedAssets[]One entry per chain and token pair that the bridge supports.
supportedAssets[].chainIdID of the chain, sent as a string. For example 1 for Ethereum.
supportedAssets[].chainNameName of the chain, such as Ethereum.
supportedAssets[].minCheckoutUsdMinimum checkout amount for this asset. The key name shows it is in USD.
supportedAssets[].token.addressContract address of the token on that chain.
supportedAssets[].token.symbol / supportedAssets[].token.nameTicker and full name of the token, such as BAT and Basic Attention Token.
supportedAssets[].token.decimalsNumber of decimal places the token uses on-chain.

Notes

  • Send an empty JSON object {} as the request body. There are no parameters and no pagination.
  • The same chainId appears in many rows, one for each token on that chain. Group rows by chainId or chainName to list tokens per chain.
  • Match tokens by token.address and chainId instead of symbol, since the response lists many tokens and symbols may not be unique.

Pricing

$0.012 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Polymarket Get supported assets?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/polymarket/supported-assets với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Polymarket Get supported assets có giá bao nhiêu?

$0.012 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Polymarket Get supported assets chấp nhận những tham số nào?

Polymarket Get supported assets không nhận tham số đầu vào; hãy gửi một phần thân JSON rỗng.

API Polymarket Get supported assets trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Polymarket không?

Không. Polymarket Get supported assets chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Polymarket.