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
Export as PDF
  1. Wallet

Cross Chain Signatures

PreviousSign MessagesNextTelegram Integration

Last updated 7 months ago

Chain signatures enable NEAR to sign and execute transactions across multiple blockchains via an MPC (Multi-Party Computation) network. Fortunately, to implement this functionality in your DApp, you won't need to integrate MPC directly, as it's fully operational within Bitte Wallet. Building an EVM transaction is straightforward once you've established a basic connection with the wallet. Redirect to the wallet URL with the evmTx parameter and the wallet will handle the complexities of generating the EVM signature and sending the transaction.

Note: This functionality currently only works for the NEAR testnet.

// Build your favourite transaction!
const tx = {
  chainId: 11_155_111,
  to: "0xDEADBEEF00000000000000000000000000000000",
  value: 1n,
  data: "0x",
};

// Pass the transaction data to this url route.
const route = `https://wallet.bitte.ai/sign-evm?to=${tx.to}&value=${tx.value}&chainId=${tx.chainId}&data=${tx.data}&callback_url=https://yourdappurl.xyz`;

// Redirect to our wallet URL with the transaction to be sent, once successful user will be redirected to callback_url

Check out NEAR-CA if you would like to implement MPC directly without using a wallet, or to take advantage of its various utilities for interfacing between NEAR and EVM.

npm: near-canpm
Logo