1.8.0 • Published 6 days ago

@slide-computer/signer-agent v1.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 days ago

@slide-computer/signer-agent

Initiate transactions with signers on the Internet Computer.


Installation

Using SignerAgent:

npm i --save @slide-computer/signer-agent

In the browser:

import { SignerAgent } from "@slide-computer/signer-agent";

To get started with the signerAgent, run

const signerAgent = new SignerAgent({
  signer,
  getPrincipal: () => {
    return accounts[0].principal; // For example, make calls as first principal
  }
});

The signerAgent can initiate a transaction with

const {transfer} = IcrcLedgerCanister.create({
  agent: signerAgent,
  canisterId: MY_LEDGER_CANISTER_ID,
});
const blockIndex = await transfer({
  to: account,
  amount: 100_000_000
});
1.8.0

6 days ago

1.7.0

1 month ago

1.6.0

1 month ago

1.5.0

1 month ago

1.4.0

1 month ago

1.3.2

2 months ago

1.3.1

2 months ago

1.3.0

2 months ago