@citadeldao/apps-sdk
v0.0.260
Published
## Using ### Etherium ```javascript import { eth } from '@citadeldao/apps-sdk';
Downloads
19
Readme
SDK for citadel apps
Using
Etherium
import { eth } from '@citadeldao/apps-sdk';
const ethContract = new eth.Contract('eth', ethContractAddress, ethContractAbi);
const BEP20USDTContract = new eth.standards.BEP20(USDTAddressBEP20);
await ethContract.call('symbol', ownerAddress);
await BEP20USDTContract.call('symbol', ownerAddress);
Cosmos
import { Cosmos } from '@citadeldao/apps-sdk';
const cosmosHubInstance = new Cosmos('cosmoshub', cosmosAddress);
await cosmosHubInstance.init(); // preparing available nodes
await cosmosHubInstance.call('bank', '/proposals');
await cosmosHubInstance.call('bank', `/proposals/${id}`, {
params: { voter: voterAddress },
timeout: 10000,
attempts: 5,
});