Sender Wallet Developer Documentation
  • Guide
    • Introduction
    • Getting Started
    • Sign in Applications
      • Sign in Applications in Near
      • Sign in Applications in Ethereum
    • Access Accounts
      • Access Accounts in Near
      • Access Account in Ethereum
    • Send Transactions
      • Send Transactions in Near
      • Send Transactions in Ethereum
  • API Reference
    • Near
      • NEAR Provider API
      • Deprecated APIs
    • Ethereum
      • Sign Data
      • Ethereum Provider API
    • Ton
      • Mobile Dapp Provider
  • Best Practices
    • Define App's Icon
Powered by GitBook
On this page
  • Methods
  • [deprecated] near.connect()
  • [deprecated] near.disconnect()
  • [deprecated] near.isConnected()
  • [deprecated] near.sendMoney()
  • [deprecated] near.viewFunction()
  1. API Reference
  2. Near

Deprecated APIs

Here are some deprecated APIs that we may not support in future versions.

Methods

[deprecated] near.connect()

Similar to requestSignIn(), connect user to the current application

[deprecated] near.disconnect()

Similar to signOut(), disconnect user from the current application

[deprecated] near.isConnected()

Returns true if the provider is connected to the current chain, and false otherwise.

[deprecated] near.sendMoney()

Send $NEAR to others

const res = await window.near.sendMoney({
  receiverId: 'xxx.testnet',
  amount: parseNearAmount('1'),
})

console.log('send near res: ', res);

[deprecated] near.viewFunction()

View function call with current RPC

PreviousNEAR Provider APINextEthereum

Last updated 3 years ago