Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roushou/coinbasejs
Coinbase Developer Platform TypeScript SDK
https://github.com/roushou/coinbasejs
coinbase commerce onchain paymaster
Last synced: about 2 months ago
JSON representation
Coinbase Developer Platform TypeScript SDK
- Host: GitHub
- URL: https://github.com/roushou/coinbasejs
- Owner: roushou
- License: mit
- Created: 2024-06-19T13:40:17.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-10T12:15:37.000Z (6 months ago)
- Last Synced: 2024-10-31T18:59:17.080Z (2 months ago)
- Topics: coinbase, commerce, onchain, paymaster
- Language: TypeScript
- Homepage: https://coinbasejs.com
- Size: 291 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Coinbase Developer Platform SDK
> [!WARNING]
> This library is under active development so things might change and break between releases.This is a TypeScript SDK for the [Coinbase Developer Platform](https://docs.cdp.coinbase.com/).
## Features:
- Build Onchain
- Node RPC [ ]
- Onchain Data [✔️]
- Paymaster [ ]
- Mesh [ ]
- Faucet
- Payments
- Commerce [ ]
- Onramp [ ]
- Wallets
- Smart Wallet [ ]
- Coinbase Wallet [ ]
- Embedded Wallet [ ]
- Trade []## Overview
```ts
// 1. Import modules
import { createClient, createRpcClient } from "@coinbasejs/onchain";// 2. Create an RPC client
const rpcClient = createRpcClient({
apiKey: "API_KEY",
network: "base",
});// 3. Send request
const response = await rpcClient.request({
method: "cdp_listBalances",
parameters: [
{
address: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
pageSize: 1,
},
],
});// For convenience, you can also create a higher-level client
const client = createClient({
apiKey: "API_KEY",
network: "base",
});// Send request
const balances = await client.getBalances([{
address: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789",
pageSize: 1,
}]);
```## Documentation
Read the [documentation](https://coinbasejs.com/) to learn more about coinbasejs.
## License
[MIT](./LICENSE) License