https://github.com/hazae41/abi
ABI encoding for the web
https://github.com/hazae41/abi
Last synced: about 1 month ago
JSON representation
ABI encoding for the web
- Host: GitHub
- URL: https://github.com/hazae41/abi
- Owner: hazae41
- License: mit
- Created: 2026-06-10T05:15:53.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-06-10T05:17:49.000Z (about 2 months ago)
- Last Synced: 2026-06-10T07:15:08.453Z (about 2 months ago)
- Language: TypeScript
- Size: 20.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- awesome-ccamel - hazae41/abi - ABI encoding for the web (TypeScript)
README
# ABI
ABI encoding for the web
```bash
npm install @hazae41/abi
```
[**📦 NPM**](https://www.npmjs.com/package/@hazae41/abi)
## Features
### Current features
- 100% TypeScript and ESM
- No external dependencies
- Rust-like patterns
## Usage
### Decoding
```tsx
const [string, bigint] = abi.decode([AbiString, AbiUint8], Uint8Array.fromHex(...)))
```
### Encoding
```tsx
const hex = abi.encode([AbiString, AbiUint8], ["hello world", 1n]).toHex()
```
```tsx
const hex = abi.encodePacked([AbiString, AbiUint8], ["hello world", 1n]).toHex()
```