Persistence JS
Last updated
Was this helpful?
Last updated
Was this helpful?
PersistenceClient consists of a signingStargateClient
and a SigningCowsmWasmClient
, referred to as core and wasm respectively.
For querying use PersistenceClient.query, this gives you a tmclient
. Usage for a tmclient for querying is based on cosmos-sdk
i.e. query path is taken from module locations.
Query Balance
MsgSend A more flexible way to send transaction is by creating a Msg and brodcasting it. This is the preferd way for building large scale applications with multiple components.
NOTE: It is the default method for uploading your own contract to the persistence chain.
Send Tokens Use persistenceClient.wasm to send contracts via CW20 contract, persistenceClient.wasm is a SigningWasmClient so most of the functionalities are similar to @cosmjs/. The Signer for this example is a mnemonic wallet.
Please refer to for more information on how to use CosmWasm.
This method gives a lot more flexibility for an application, additional use case can be found in the .
This lets you upload and initiate a contract via Gov proposals.