6.0.0-beta.1 • Published 11 months ago

@ethers-ext/provider-plugin-multicoin v6.0.0-beta.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Ethers: ENS Multicoin Provider Plug-in

Usage

import { plugin } from "@ethers-ext/provider-plugin-multicoin";

// However you get your provider
const provider = ethers.getDefaultProvider();

// Attach a plugin instance
provider.attchPlugin(plugin);

// Test it out!
(async function() {
    const resolver = await provider.getResolver("ricmoo.eth");

    // Get the Bitcoin address (coinType 0)
    console.log(await resolver.getAddress(0));
})();

License

MIT License.