Skip to main content

Create instance

Create a new instance and set url of an AElf chain node.

import AElf from "aelf-sdk";

// create a new instance of AElf
const aelf = new AElf(new AElf.providers.HttpProvider("http://127.0.0.1:1235"));