@dfinity/agent

JavaScript and TypeScript library to interact with the Internet Computer

Usage no npm install needed!

<script type="module">
  import dfinityAgent from 'https://cdn.skypack.dev/@dfinity/agent';
</script>

README

@dfinity/agent

JavaScript and TypeScript library to interact with the Internet Computer for Node.js and Client applications

Visit the Dfinity Forum and SDK Documentation for more information and support building on the Internet Computer.

Additional API Documentation can be found here.


Installation

Using agent:

npm i --save @dfinity/agent

In the browser:

import * as agent from "@dfinity/agent";

or using individual exports:

import { Actor, HttpAgent } from "@dfinity/agent";

In Node.js

const actor = require("@dfinity/agent");