Returns the current connected wallet account
Redirects current page to the wallet authentication page.
An optional options object
The NEAR account where the contract is deployed
URL to redirect upon success. Default: current url
URL to redirect upon failure. Default: current url
Constructs string URL to the wallet authentication page.
An optional options object
The NEAR account where the contract is deployed
URL to redirect upon success. Default: current url
URL to redirect upon failure. Default: current url
Requests the user to quickly sign for a transaction or batch of transactions by redirecting to the wallet.
A required options object
List of transactions to sign
URL to redirect upon success. Default: current url
Meta information the wallet will send back to the application. meta
will be attached to the callbackUrl
as a url search param
Constructs string URL to the wallet to sign a transaction or batch of transactions.
A required options object
List of transactions to sign
URL to redirect upon success. Default: current url
Meta information the wallet will send back to the application. meta
will be attached to the callbackUrl
as a url search param
This class is not intended for use outside the browser. Without
window
(i.e. in server contexts), it will instantiate but will throw a clear error when used.See
https://docs.near.org/tools/near-api-js/quick-reference#wallet
Example