Build on Coinweb
Build on Coinweb
Coinweb for Developers
Create your dApp
Build a TypeScript project within the Coinweb ecosystem. This involves orchestrating a harmonious blend of the Coinweb wallet library and various contract modules.
YARN_REGISTRY=https://npm.coinweb.io/ yarn create
coinweb-dapp
cd my-dapp
yarn build
Create Wallet
Coinweb Wallet SDK is a comprehensive and developer-friendly toolkit, designed to empower developers in seamlessly integrating blockchain transactions into their applications.
import { create, wallet, compose_token_command, embed, embed_status } from @coinweb/cweb-wallet-library;
const config = {…};
const wallet = await create_wallet(config);
Using WASM, we open dApp development to 40+ languages like JS & Python, broadening developer inclusion and compatibility, and fostering innovation in the space of blockchain technology.
const transaction = await compose_send(wallet, {
amount: BigInt(100),
destination: ’03f752eaab0405eebe0b9db7cefa20cf527662321ec89be3cfccd86677d29df3e0′
});
const embed_id = await embed(wallet, transaction);
// General Message Passing HTML
// Send any payload with a single smart contract call
function callContract(
string memory destinationChain,
string memory contractAddress,
bytes memory payload
)
// General Message Passing CSS
// Send any payload with a single smart contract call
function callContract(
string memory destinationChain,
string memory contractAddress,
bytes memory payload
)