API reference

Arweave (ar)

Verify an Arweave address from a signature

ar.molecule.sh/ar-auth/{publicKey}/{message}/{signature}

  • Arguments:

    • publicKey (required): the Arweave jwk's n property, encoded to binary

    • message (required): text of the signed message, encoded to binary

    • signature (required): signature generated by the signed message, encoded to binary

Query an Arweave transaction by ID

ar.molecule.sh/tx-gql/{txid}

  • Arguments:

    • txid (required): The transaction ID of the Arweave transaction.

Query an Arweave block by ID

ar.molecule.sh/block-gql/{blockid}

  • Arguments:

    • blockid (required): The ID of the Arweave block.

Derive an Arweave address from a public key

ar.molecule.sh/ota/{publicKey}

  • Arguments:

    • publicKey (required): The Arweave jwk's n property

EVM (evm)

Verify an EVM signature to derive caller address.

evm.molecule.sh/signer/{address}/{message}/{signature}

  • Arguments:

    • address (required): The Ethereum address of the signer.

    • message (required): The message signed by the signer.

    • signature (required): The signature generated by the signer.

Example

Solana (sol)

Verify a Solana signature to derive caller address.

sol.molecule.sh/auth/{accountId}/{message}/{signature}

  • Arguments:

    • accountId (required): The Solana account ID of the signer.

    • message (required): The message signed by the signer.

    • signature (required): The signature generated by the signer.

Zilliqa (zil)

Verify a Zilliqua signature to derive caller address.

zil.molecule.sh/zil-auth/{address}/{message}/{signature}

  • Arguments:

    • address (required): The Zilliqa address of the signer.

    • message (required): The message signed by the signer.

    • signature (required): The signature generated by the signer.

Stacks (stx)

Verify a Stacks signature to derive caller address.

stx.molecule.sh/stx-auth/{address}/{message}/{signature}

  • Arguments:

    • address (required): The Stacks address of the signer.

    • message (required): The message signed by the signer.

    • signature (required): The signature generated by the signer.

Substrate (substrate)

Verify a Substrate signature to derive caller address.

substrate.molecule.sh/substrate-auth/{address}/{message}/{signature}

  • Arguments:

    • address (required): The Substrate address of the signer.

    • message (required): The message signed by the signer.

    • signature (required): The signature generated by the signer.

TRON (trx)

Verify a TRON signature to derive caller address.

  • trx.molecule.sh/trx-auth/{address}/{message}/{signature}

    • Arguments:

      • address (required): The TRON address of the signer.

      • message (required): The message signed by the signer.

      • signature (required): The signature generated by the signer.

Internet Computer (icp)

Verify an Internet Computer signature to derive caller address.

icp.molecule.sh/icp-auth/{address}/{message}/{signature}

  • Arguments:

    • address (required): The Internet Computer address of the signer.

    • message (required): The message signed by the signer.

    • signature (required): The signature generated by the signer.

TON (ton)

Verify a TON signature to derive caller address.

ton.molecule.sh/ton-auth/{address}/{message}/{signature}

  • Arguments:

    • address (required): The TON address of the signer.

    • message (required): The message signed by the signer.

    • signature (required): The signature generated by the signer.

Massa (massa)

Verify a Massa signature to derive caller address.

massa.molecule.sh/massa-auth/{address}/{message}/{signature}

  • Arguments:

    • address (required): The Massa address of the signer.

    • message (required): The message signed by the signer.

    • signature (required): The signature generated by the signer.

Fuel Network (fuel)

Verify a Fuel signature to derive caller address.

fuel.molecule.sh/fuel-auth/{address}/{message}/{signature}

  • Arguments:

    • address (required): The Fuel Network address of the signer.

    • message (required): The message signed by the signer.

    • signature (required): The signature generated by the signer.

Tezos (tez)

Verify a Tezos signature to derive caller address.

tez.molecule.sh/tez-auth/{address}/{message}/{signature}

  • Arguments:

    • address (required): The Tezos address of the signer.

    • message (required): The message signed by the signer.

    • signature (required): The signature generated by the signer.

Aptos (aptos)

Verify an Aptos signature to derive caller address.

aptos.molecule.sh/aptos-auth/{address}/{message}/{signature}

  • Arguments:

    • address (required): The Aptos address of the signer.

    • message (required): The message signed by the signer.

    • signature (required): The signature generated by the signer.

Nostr (nostr)

Verify a Nostr signature to derive caller address.

nostr.molecule.sh/nostr-auth/{address}/{message}/{signature}

  • Arguments:

    • address (required): The Nostr address of the signer.

    • message (required): The message signed by the signer.

    • signature (required): The signature generated by the signer.

NEAR (near)

Query a NEAR contract interaction by user and key.

near.molecule.sh/n-view-state/{contractId}/{accountId}/{key}

  • Arguments:

    • contractId (required): The NEAR contract ID.

    • accountId (required): The NEAR account ID.

    • key (required): The key to fetch from the contract state.

Redstone (redstone)

Fetch price data from RedStone for a given supported asset.

redstone.molecule.sh/price/{symbol}

  • Arguments:

    • symbol (required): The symbol of the asset.

everPay (everPay)

(coming soon)

Randomization (rand)

(coming soon)

NoRamp (noramp)

(coming soon)

Ark Protocol (ark)

Query Ark Protocol identity by username

ark.molecule.sh/state/{username}

  • Arguments:

    • username (required): The Ark username.

Resolve an Ark Protocol username to the owner's address

ark.molecule.sh/resolve/{username}

  • Arguments:

    • username (required): The Ark username.

Resolve a DID to an Ark Protocol identity

ark.molecule.sh/soark/domain/{domain}

  • Arguments:

    • domain (required): The domain name.

Last updated

mem.tech © 2023