getSupportedTokens

Yêu cầu JSON-RPC

{
"jsonrpc": "2.0",
"id": 1,
"method": "getSupportedTokens",
"params": []
}

Phản hồi JSON-RPC

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"tokens": ["3Z1Ef7YaxK8oUMoi6exf7wYZjZKWJJsrzJXSt1c3qrDE"]
}
}

Ví dụ cURL

curl -X POST http://localhost:8080 \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"getSupportedTokens","params":[]}'

TypeScript SDK

const { tokens } = await client.getSupportedTokens();
console.log("Supported tokens:", tokens);
// Output: ['EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', ...]

Is this page helpful?

Mục lục

Chỉnh sửa trang

Quản lý bởi

© 2026 Solana Foundation.
Đã đăng ký bản quyền.
Kết nối