@rarimo/providers-near
Version:
Features of the Rarimo SDK that provide access to wallets and the ability to interact with them on the NEAR blockchain.
32 lines (22 loc) • 1.19 kB
Markdown
Features of the Rarimo SDK that provide access to wallets and the ability to interact with them on the NEAR blockchain.




For example applications, see [rarimo/js-sdk-examples](https://github.com/rarimo/js-sdk-examples/) on GitHub.
Here is an example that creates a `NearProvider` object for a Near wallet and prints its address:
```js
import { createProvider } from '@rarimo/provider'
import { NearProvider } from '@rarimo/providers-near'
const getNearWalletAddress = async () => {
// Connect to the MyNearWallet wallet in the browser using the NearProvider interface to limit bundle size.
const provider = await createProvider(NearProvider)
await provider.connect()
// Get the address of the wallet
console.log(provider.address)
}
```
For the change log, see [CHANGELOG.md](https://github.com/rarimo/js-sdk/blob/main/CHANGELOG.md).