WalletConnect Developer Guide
Intro
This guide will help developers to create dApps on Chia's blockchain using WalletConnect. It will be expanded upon as more tools are introduced.
RPC Calls
The following table shows each RPC for Chia WalletConnect dApps, along with a description of what each RPC does, and a link to the equivalent Chia RPC:
WalletConnect RPC | Chia Wallet RPC | Description |
---|---|---|
getTransaction | get_transaction | Get a transaction's details from its ID |
getWalletBalance | get_wallet_balance | Obtain the balance (and related info) from a wallet |
getCATAssetId | cat_get_asset_id | Retrieve a the asset ID from a CAT wallet |
getNFTs | nft_get_nfts | Show all NFTs in a given wallet |
getNFTInfo | nft_get_info | Get info about an NFT |
getNFTCount | nft_count_nfts | Count the number of NFTs in a wallet |
LogIn | log_in | Log into the wallet with the specified key |
SignMessageById | sign_message_by_id | Sign a message using a DID or NFT ID without incurring an on-chain transaction |
SignMessageByAddress | sign_message_by_address | Sign a message using an XCH address without incurring an on-chain transaction |
CreatNewCATWallet | create_new_wallet* | Create a new wallet for CATs (* for the Chia wallet RPC, you must specify a wallet_type of cat_wallet ) |
addCattoken | ||
VerifySignature | verify_signature | Given a public key, message and signature, verify if it is valid |
getAllOffers | get_all_offers | Show the details of all offers for this wallet |
getOffersCount | get_offers_count | Obtain the number of offers from the current wallet |
checkOfferValidity | check_offer_validity | Check if an offer is valid |
getOfferSummary | get_offer_summary | Show a summary of an offer |
getOfferData | get_offer | Show the details of one offer |
getOfferRecord | get_all_offers | Show the details of all offers for this wallet |
transferNFT | nft_transfer_nft | Transfer an NFT to a new wallet address |
SendTransaction | send_transaction | Send a transaction |
waitForConfirmation | ||
CreateOfferForIDs | create_offer_for_ids | Create a new offer |
CancelOffer | cancel_offer | Cancel an offer |
CheckOfferValidity | check_offer_validity | Check if an offer is valid |
takeOffer | take_offer | Take an offer |
SpendCat | cat_spend | Send CAT funds to another wallet |
getWallets | get_wallets | Show all wallets associated with the current fingerprint, including (by default) coin information |
getCurrentAddress | get_next_address* | Set new_address to false to use the current address |
getNextAddress | get_next_address* | Set new_address to true to create a new address |
getSyncStatus | get_sync_status | Show whether the current wallet is syncing or synced |