Skip to main content

Technical reference

At a glance​

  • SDK: @crackpay/miniapp-sdk connects your app to the wallet. It gives you a standard EIP-1193 provider, plus helpers for viem and React.
  • Provider: detect CrackPay with provider.isCrackPay === true. The provider arrives asynchronously; always await the SDK.
  • Libraries: viem is recommended; wagmi, ethers and others work through the provider.
  • Network: Arc mainnet (5042) at www.crackpay.xyz; the SDK also supports Arc Testnet (5042002). Read the chain from the provider. See Arc network.
  • Transactions: eth_sendTransaction resolves with the hash once final. Gas is sponsored. See Send a transaction.
  • User: the account address and CrackPay handle, with no prompt. See User profile.

Code examples​

Wallet operations​

Details​