Skip to main content
GET
/
v1
/
coins
/
contract
/
{contractAddress}
Get coin by contract address
import { ParagraphAPI } from "@paragraph_xyz/sdk"

const api = new ParagraphAPI()
const coin = await api.getCoinByContract("0xe9bb3166ff5f96381e257d509a801303b68e5d34")
{
  "id": "<string>",
  "contractAddress": "<string>",
  "symbol": "<string>",
  "postId": "<string>",
  "blogId": "<string>",
  "type": "post"
}

Path Parameters

contractAddress
string
required

Contract address

Response

Coin details retrieved successfully

id
string
required

Unique identifier for the coin

contractAddress
string
required

Base contract address for the coin

symbol
string
required

Token symbol

blogId
string
required

ID of the blog this coin is associated with

type
enum<string>
required

The type of the coin, either a post coin or a writer coin

Available options:
post,
writer
postId
string

ID of the post this coin is associated with