Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whether to support the “transferable-inscription” lookup method #447

Open
0xharriger opened this issue Feb 24, 2025 · 1 comment
Open
Labels
api brc20 enhancement New feature or request

Comments

@0xharriger
Copy link

0xharriger commented Feb 24, 2025

In projects like unisat's open-api and open project OPI, there are methods named “transferable-inscriptions” and “get_valid_tx_notes_of_wallet” respectively, which return the inscription id of the BRC20 that is transferable among the BRC-20 owned by the user. Is there any chance that the ordhook and ordinals-api will support such functionality?

example:

curl -X 'GET' \
  'https://open-api.unisat.io/v1/indexer/address/bc1pa0rsjcu8uktcxmmdw26qpe4k3rn0f6z2xju9rq3k904ed4kcw8nsl4lux2/brc20/meme/transferable-inscriptions?start=0&limit=16' \
  -H 'accept: application/json'

{
  "code": 0,
  "msg": "ok",
  "data": {
    "height": 885063,
    "total": 2,
    "start": 0,
    "detail": [
      {
        "data": {
          "op": "transfer",
          "tick": "meme",
          "lim": "1",
          "amt": "30",
          "decimal": "18"
        },
        "inscriptionNumber": 1095397,
        "inscriptionId": "ffb9df4532e05fe514765bcbeebb75c38d8f1774a291f9d6f123d68820cc39cdi0",
        "satoshi": 546,
        "confirmations": 99921
      },
      {
        "data": {
          "op": "transfer",
          "tick": "meme",
          "lim": "1",
          "amt": "30",
          "decimal": "18"
        },
        "inscriptionNumber": 1095387,
        "inscriptionId": "0a192a94ba98a683847b5be1f6ed2c01f01191b5eb70828e3592c5276bf27ba7i0",
        "satoshi": 546,
        "confirmations": 99922
      }
    ]
  }
}

Or is there already such a feature and I'm missing it?

@rafaelcr
Copy link
Collaborator

Cool feature, we could definitely do something close to this. Will keep it in the radar

@rafaelcr rafaelcr added enhancement New feature or request brc20 api labels Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api brc20 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants