cellula.id

v0.5.0
io.github.LusoCryptoLabs/cellula Checked 1 day ago Published 20 hours ago

Resolve and check .cell names on Nervos, verify what a name signed, pay over Fiber as an agent.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

resolve_cell_name Where a .cell name is paid

Look up a .cell name (for example alice.cell) on the Nervos blockchain and return where its owner is paid: a CKB address, and when published a Bitcoin address, an Ethereum/EVM address, a Lightning Address and a Fiber node. Also whether the name is registered, its state (live, grace or free) and when it expires. Read from the chain directly, and only addresses written by whoever holds the name now are returned (one a former owner left is listed as withheld). Pay with your own wallet to the address returned; never to an address taken from anywhere else.

ParameterTypeDescription
name *stringThe name, with or without .cell
networkstringWhich Nervos network to read. Defaults to mainnet.

name_for_address The .cell name of an address

Find the .cell name a CKB address chose for itself (its primary name), checked both ways: the address chose the name and the name still points back to it. Takes a CKB address (ckb1... on mainnet, ckt1... on testnet). Returns null for an address without one.

ParameterTypeDescription
address *stringA CKB address: ckb1... on mainnet, ckt1... on testnet
networkstringWhich Nervos network to read. Defaults to mainnet.

check_cell_name Is a .cell name free

Check whether a .cell name can be registered. For a free name: the yearly fee in CKB as it stands today and the deposit held in the name. For a taken one: when it expires. Registering happens at the page returned, with the person's own wallet.

ParameterTypeDescription
name *stringThe name, with or without .cell
networkstringWhich Nervos network to read. Defaults to mainnet.

verify_cell_statement Was this said by a .cell name

Verify a statement signed by a .cell name (its check link, its token, or the pasted block between its marker lines). Says whether it was signed by whoever owns the name now, and if not, why: a former owner, a changed text, another deployment.

ParameterTypeDescription
statement *stringThe statement link, token or block
networkstringWhich Nervos network to read. Defaults to mainnet.