0.1.5 • Published 1 year ago

nuxt-web3.js v0.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

nuxt-web3.js

Version

Nuxt 3 module for Web3.js.

Installation

npm install nuxt-web3.js

Usage

export default defineNuxtConfig({
  modules: ['nuxt-web3.js'],
})
<script setup lang="ts">
const Web3 = useWeb3()

// Default provider for server
const provider = new Web3.providers.HttpProvider('<PROVIDER_HOST>')
// Use window.ethereum or default provider
const web3 = new Web3(Web3.givenProvider || provider)

const balance = await web3.eth.getBalance(walletAddress)
</script>

For Nuxt 2 version, use https://github.com/fzn0x/nuxt-web3.

License

MIT

0.1.5

1 year ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago