Socket
Book a DemoInstallSign in
Socket

@hot-wallet/sdk

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hot-wallet/sdk

## Connector for Injected Apps

1.0.11
latest
npmnpm
Version published
Weekly downloads
1.7K
-2.08%
Maintainers
1
Weekly downloads
 
Created
Source

HOT Wallet SDK

Connector for Injected Apps

  • Support HOT Extension

  • Support Telegram/Mobile App via Iframe Widget

  • Solana Connect

  • TON Connect

  • EVM Connect

  • NEAR Connect

Solana Connect

import { HOT } from "@hot-wallet/sdk";
import { HotWalletAdapter } from "@hot-wallet/sdk/adapter/solana";

// for @solana/wallet-adapter-base
const adapter = new HotWalletAdapter();

// Or low level api
await HOT.request("solana:connect", {});
await HOT.request("solana:signMessage", { ... });
await HOT.request("solana:signTransactions", { ... });
await HOT.request("solana:signAndSendTransaction", { ... });

NEAR Connect

import { setupHotWallet } from "@hot-wallet/adapter/near";
// Setup near-wallet-selector with setupHotWallet()

// Or use low level api
import { HOT } from "@hot-wallet/sdk";
await HOT.request("near:signIn", {});
await HOT.request("near:signMessage", { ... });
await HOT.request("near:signAndSendTransaction", { ... });

TON Connect

import "@hot-wallet/sdk/adapter/ton";
// After this you can use @tonconnect/sdk as you want

// Or use low lvel api
import { HOT } from "@hot-wallet/sdk";
await HOT.request("ton:connect", {});
await HOT.request("ton:send", { ... });

EVM Connect

If the application is opened inside HOT, then your wallet-selector (web3modal or rainbowkit) will automatically see the HOT wallet:

import "@hot-wallet/sdk";

If you integrate HOT on a website or a separate Telegram miniapp, you need to call the method:

import { HOT } from "@hot-wallet/sdk";
HOT.setupEthProvider((request, chain, address) => {
  // use rpc for connected chain and address
  return yourPublicRpcProvider[chain]?.request(request);
});

hotProvider implements methods that require a private key signature. All other methods that need to be sent to the network you must implement yourself. You can use your own rpc for this in conjunction with etherjs or web3 library.

// Or use low lvel api
import { HOT } from "@hot-wallet/sdk";
await HOT.request("ethereum", { ... });

Debug Injected App

Default example app with chains connector:

  • Open https://t.me/herewalletbot/app?startapp=browser
  • Enter https://hot-example-connect.surge.sh inside HOT Wallet

You can replace hot-example-connect.surge.sh with your own domain (or localhost:PORT) to debug app!

Happy hacking

FAQs

Package last updated on 20 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.