Search by name, SuiNS, address, digest, object ID, coin type or checkpoint.

API
account.pins.put

Method

account.pins.put

Save the pins on your home page.

Details

Endpoint
PUT /v1/account/pins
Credits
Free
Rate class
Light. Counts against your light requests per second.

Replaces the pins on your home page with the list sent, in order (up to 24). Each pin is { k, id, name, icon, href, sub?, venueLogo?, types? } where k is addr, coin, perp, pool, coll, pkg or tx. Free; needs a login.

Parameters

NameTypeDescription
pinsrequiredarray of object

Request

Send your key in the x-api-key header, or leave it out to use the keyless tier.

curl
curl -X PUT "https://api.tide.ad/v1/account/pins" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "content-type: application/json" \
  -d '{
  "pins": [
    {
      "k": "coin",
      "id": "0x2::sui::SUI",
      "name": "SUI",
      "icon": null,
      "href": "/coin/sui"
    }
  ]
}'
TypeScript
const res = await fetch("https://api.tide.ad/v1/account/pins", {
  method: "PUT",
  headers: {
    "x-api-key": process.env.TIDE_API_KEY!,
    "content-type": "application/json",
  },
  body: JSON.stringify({
    "pins": [
      {
        "k": "coin",
        "id": "0x2::sui::SUI",
        "name": "SUI",
        "icon": null,
        "href": "/coin/sui"
      }
    ]
  }),
});
const data = await res.json();

Response

No example response is available for this method yet.