NEAR Provider API
Properties
near.isSender
true
if the user has Sender installed.
Methods
near.requestSignIn()
Request sign in with the contract, given the needed view and change methods, return the access key (The response might be changed in future version).
near.signOut()
Sign out the access key from this account and then clean the signed in access key from the storage. Must need to pass the specific contractId if one dapp has multiple contractId.
near.isSignedIn()
Check whether the current account has signed in. Must need to pass the specific contractId if one dapp has multiple contractId.
near.getAccountId()
The current selected NEAR account ID
[Work-In Progress] near.account()
Return an instance of the account
object in near-api-js . The usage can be found in the documentation here.
near.signAndSendTransaction()
Send one single transaction
near.requestSignTransactions()
Send multiple transactions in batch
near.request()
Use request
to submit RPC requests to NEAR blockchain via Sender.
Events
signIn
An account has signed in
signOut
The current account has signed out
accountChanged
Listen to the current account changed
rpcChanged
Listen to the current RPC URL changed
Last updated