0.2.5 • Published 1 year ago
@bonfida/sns-warp-injective v0.2.5
With Yarn:
yarn add @bonfida/sns-warp-injective
With NPM:
npm i @bonfida/sns-warp-injective
This package can be used to resolve .sol
domains on Injective.
The JS client currently support the following chains:
- Injective Testnet (deployed at
inj1mrc7uhhwfw7m3mgmqvtypw9qp09d5gsasvmup9
) - Injective Mainnet (deployed at
)
Resolving a .sol domain
The following code can be used to resolve .sol
domains
// The domain name to resolve
const domain = "mock3.sol";
// The network on which to resolve the domain
const network = Network.Mainnet;
const resolved = await resolveName(domain, network);
console.log(resolved); // <- inj1r4ce6tdhv0ustvvjfar22xz7qqwan95xn9vfmx
Reverse look up
The following code can be used to resolve a name address
// The network on which to perform the reverse lookup
const network = Network.Mainnet;
const address = "...";
const resolved = await resolveReverse(address, network);
console.log(resolved); // <- mock3
0.2.5
1 year ago
0.2.3
2 years ago
0.2.4
2 years ago
0.2.1
2 years ago
0.2.2
2 years ago
0.2.0
2 years ago
0.1.0
2 years ago
0.1.1
2 years ago
0.0.3
2 years ago
0.0.1-alpha.6
2 years ago
0.0.1-alpha.7
2 years ago
0.0.1-alpha.4
2 years ago
0.0.2
2 years ago
0.0.1-alpha.5
2 years ago
0.0.1-alpha.10
2 years ago
0.0.1-alpha.8
2 years ago
0.0.1-alpha.9
2 years ago
0.0.1-alpha.3
2 years ago
0.0.1-alpha.1
2 years ago