1.0.5 • Published 1 year ago

xrplidjs v1.0.5

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

XRP Web3 Identity

SDK and API for XRP Web3 Identity

Nodejs SDK

Website: https://xrpdomains.xyz/

Npm: https://www.npmjs.com/package/xrplidjs

Docs: https://docs.xrpdomains.xyz/developer-guide/xrpl-name-sdk

Before installing the package you need to check and be sure to install the packages below:

npm install xrpl verify-xrpl-signature

Install Package

npm install xrplidjs

Call

const xrplidjs = require('xrplidjs');

const config = 
{
		rpcUrl: "wss://xrplcluster.com/",
		Issuer: "raAyazbgEkwzLByXipQuPLWFfnsPS1v1q9",
		
}

async function main() {
	const sdk = xrplidjs.SDK(config);	
	
  // your xrp domain
	const domain = "hello.xrp";
		
	// resolve domain to get the address of the owner.
	const owner = await sdk.getAddress(domain);
	
	console.log(owner);
	
	// your address
	const address = "rLhi87aSCyNW88tW4632yLiwinbghFZNue";
	
	const _domain = await sdk.getName(address);
	
	console.log(_domain);
}

main();

Pls update test.js for specific instructions

Thanks!

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago