@ethernauta/erc
v0.0.40
Published
[](https://deno.bundlejs.com/badge?q=@ethernauta/[email protected]&treeshake=[*])
Readme
Philosophy
This module aims to be an un-opinionated representation of the defined:
Modules
Table of contents
API
Executing ERC20 method
import { transfer } from "@ethernauta/erc/20";
import { writer, SEPOLIA_CHAIN_ID } from "./writer";
const writable = transfer([
"0x636c0fcd6da2207abfa80427b556695a4ad0af94",
number_to_hex(1),
])
const hash = await writable(
writer(SEPOLIA_CHAIN_ID),
)Executing ERC721 method
import { approve } from "@ethernauta/erc/721";
import { writer, SEPOLIA_CHAIN_ID } from "./writer";
const writable = approve([
"0x636c0fcd6da2207abfa80427b556695a4ad0af94",
"57896044618658097711785492504343953926634992332820282019728792003956564819967",
])
const hash = await writable(
writer(SEPOLIA_CHAIN_ID),
)