1.2.4 • Published 8 days ago

@l1x/l1x-wallet-sdk v1.2.4

Weekly downloads
-
License
Apache License 2....
Repository
-
Last release
8 days ago

L1X Typescript SDK

Utilize this tool to engage with accounts and programs on the L1X Network via the L1X Network JSON RPC API.

Installation

For use in Node.js or a web application (Invited Members)

  • Login via CLI using invited credentials
npm login

For use in Node.js or a web application

  npm install --save @l1x/l1x-wallet-sdk

Documentation and examples

For more detail on individual functions, see the latest API Documentation

Environment Setup

Requirements:

  • Node Version >= v16.19.1

To Build from source run

  npm install
  npm run build

Running Tests

To run tests, run the following command

  npm run test

Usage/Examples

More Details on L1XProvider

const {L1XProvider} = require("@l1x/l1x-wallet-sdk")

OR 

For V1 Chain:

import {L1XProvider} from ("@l1x/l1x-wallet-sdk")

function getL1XProvider(){
    return new L1XProvider({
        clusterType:"mainnet"
    })
}

(async() => {
    const l1x = getL1XProvider();
    await l1x.core.getChainState().then(console.log)
})();

For V2 Chain:

import {L1XProvider} from ("@l1x/l1x-wallet-sdk")

function getL1XProvider(){
    return new L1XProvider({
      clusterType:"mainnet",
      endpoint:"https://v2-mainnet-rpc.l1x.foundation"
    })
}

(async() => {
    const l1x = getL1XProvider();
    await l1x.core.getChainState().then(console.log)
})();
1.2.4

8 days ago

1.2.3

11 days ago

1.2.0

15 days ago

1.2.2

15 days ago

1.2.1

15 days ago

1.1.9

16 days ago

1.1.8

24 days ago

1.1.7

24 days ago

1.1.6

24 days ago

1.1.5

2 months ago

1.1.4

2 months ago

1.1.3

4 months ago

1.1.2

4 months ago

1.1.1

4 months ago

1.1.0

4 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago