@tribalfinance/marketplace-sdk
v1.0.3
Published
Tribal Marketplace SDK is a library that provides a set of tools to interact with the Tribal Marketplace Contract.
Downloads
5
Readme
Tribal Marketplace SDK
Tribal Marketplace SDK is a library that provides a set of tools to interact with the Tribal Marketplace Contract.
Installation
npm install @tribalfinance/marketplace-sdk
Contracts
| Name | Network | Address |
| :------------ | :--------------- | :------------------------------------------- |
| Marketplace
| Tribal Testnet
| 0xbFeF5203acD11347e8e5330D7b4dD51f48bD271b
|
Networks
| Network | RPC URL |
| :--------------- | :----------------------------------- |
| Tribal Testnet
| https://rpc-testnet.tribal.finance
|
Usage
import { MarketplaceClient } from '@tribal/marketplace-sdk';
import { ethers } from 'ethers';
const marketplaceContract = '0xbFeF5203acD11347e8e5330D7b4dD51f48bD271b';
// Generating Ethers V6 Signer (if you are using wagmi please visit https://wagmi.sh/core/guides/ethers)
const provider = new ethers.JsonRpcProvider(
'https://rpc-testnet.tribal.finance'
);
const signer = new ethers.Wallet(process.env.PRIVATE_KEY, provider);
const marketplaceClient = new MarketplaceClient(marketplaceContract, {
signer
});