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

Last updated