LogoLogo
  • Overview
  • Prompts
    • Quickstart
    • DeFi Swaps
    • MEME Launcher
    • Image Gen Mint
    • Drop Links
    • NFT Collection
    • Buys, Lists, Transfers
    • Create Contract
  • Agents
    • Introduction
    • Quick Start
    • Manifest
    • Embeddable Chat Component
    • Widget Component
    • Deploy Your Open Agent
    • MCP
    • make-agent
    • Contract To Agent
    • Sui Agent Building
  • Wallet
    • Quickstart
    • NFT Drops
    • Paymaster
    • Integrations
    • Sign Messages
    • Cross Chain Signatures
    • Telegram Integration
Powered by GitBook
LogoLogo

Socials

  • X (Twitter)
On this page
  • Sign Message
  • Verify Message
  • Verify Message via API Endpoint
Export as PDF
  1. Wallet

Sign Messages

Bitte Wallet provides functionalities for signing and verifying messages. This documentation outlines the steps for using these features, including signing a message, verifying a message via the UI.

PreviousIntegrationsNextCross Chain Signatures

Last updated 7 months ago

Sign Message

The sign message functionality allows you to sign a message using your Mintbase Wallet. The signed message can then be used for various verification purposes.

Endpoint

  • URL:

Parameters

  • message: The message you want to sign.

  • callbackUrl: The URL to which the signed message will be sent.

  • nonce: A unique identifier to prevent replay attacks.

Example

https://wallet.bitte.ai/sign-message?message=hey&callbackUrl=https://wallet.bitte.ai&nonce=1

Always make sure to encode the parameters when redirecting

message=${encodeURIComponent}&callbackUrl......

You can generate the nonce using this code snippet

const nonce = Buffer.from(randomBytes(32)).toString('base64')

Verify Message

The verify message functionality allows you to verify a signed message using the UI or API. Verification ensures that the message was signed by the rightful owner of the specified account.

Verify via UI

Endpoint

Parameters

  • accountId: The account ID of the signer.

  • publicKey: The public key of the signer in base58 format.

  • signature: The signature of the signed message in base64 format.

  • message: The original message that was signed.

  • nonce: A unique identifier used during signing.

  • recipient: The intended recipient (e.g., mainnet).

  • callbackUrl: The URL to which the verification result will be sent.

Example

https://testnet.wallet.bitte.ai/verify-message?accountId=faraday_stroud.mintbase.testnet&publicKey=ed25519%3A6533dMsJstJvNUFcCkvgdWPWFdbs4RDRtt4vaUc1gnZU&signature=sMPu%2BAnsM2OCXMTM1OeB19XaskFG%2Fg1cBXzCClW0IbDwPvowM3Uotq6iYOoX5Qxuti5rq01GnAeIAZQ6%2F0UCCA%3D%3D&message=hey&nonce=1&recipient=mainnet&callbackUrl=https://mintbase-wallet-git-signing-message-mintbase.vercel.app

Verify Message via API Endpoint

Endpoint

Parameters

  • accountId: The account ID of the signer.

  • publicKey: The public key of the signer in base58 format.

  • signature: The signature of the signed message in base64 format.

  • message: The original message that was signed.

  • nonce: A unique identifier used during signing.

  • recipient: The intended recipient (e.g., mainnet).

  • callbackUrl: The URL to which the verification result will be sent.

Example

https://wallet.bitte.ai/api/verify-message?accountId=faraday_stroud.mintbase.testnet&publicKey=ed25519%3A6533dMsJstJvNUFcCkvgdWPWFdbs4RDRtt4vaUc1gnZU&signature=sMPu%2BAnsM2OCXMTM1OeB19XaskFG%2Fg1cBXzCClW0IbDwPvowM3Uotq6iYOoX5Qxuti5rq01GnAeIAZQ6%2F0UCCA%3D%3D&message=hey&nonce=1&recipient=mainnet&callbackUrl=https://mintbase-wallet-git-signing-message-mintbase.vercel.app

URL:

URL:

https://wallet.bitte.ai/sign-message
https://wallet.mintbase.xyz/verify-message
https://wallet.bitte.ai/api/verify-message