This repository was archived by the owner on Dec 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +12175
-2536
lines changed
docs/clients/writing/CosmWasmSigningClient Expand file tree Collapse file tree 7 files changed +12175
-2536
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,25 @@ async function main() {
86
86
main ();
87
87
```
88
88
89
+ ### Connect with Cosmostation and get a signing starget client
90
+
91
+ ``` ts
92
+ import { setupCosmostation } from " cosmwasm" ;
93
+
94
+ const config = {
95
+ chainId: " cliffnet-1" ,
96
+ rpcEndpoint: " https://rpc.cliffnet.cosmwasm.com:443/" ,
97
+ prefix: " wasm" ,
98
+ };
99
+
100
+ async function main() {
101
+ const client = await setupCosmostation (config );
102
+ console .log (client );
103
+ }
104
+
105
+ main ();
106
+ ```
107
+
89
108
### Interacting with contracts
90
109
91
110
``` ts
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ Basically there are currently 4 different setup functions:
20
20
| setupWebLedger | This function is used to log in to web-based dApps with a ledger. (Without Keplr) |
21
21
| setupNodeLocal | Herewith a local mnemonic can be used for signing. |
22
22
| setupNodeLedger | With the help of this function, a ledger device can be used in a node environment. |
23
+ | setupCosmostation | This function is used to log in to dApps with Cosmostation. |
24
+
23
25
24
26
## Configuration
25
27
@@ -117,4 +119,23 @@ const config = {
117
119
async function getClient() {
118
120
return await setupWebLedger (config , TransportNodeHid );
119
121
}
122
+ ```
123
+
124
+ ### Setup Web/Cosmostation
125
+
126
+ ``` ts
127
+ import { setupCosmostation } from " cosmwasm" ;
128
+
129
+ const config = {
130
+ chainId: " cliffnet-1" ,
131
+ rpcEndpoint: " https://rpc.cliffnet.cosmwasm.com:443/" ,
132
+ prefix: " wasm" ,
133
+ };
134
+
135
+ async function main() {
136
+ const client = await setupCosmostation (config );
137
+ console .log (client );
138
+ }
139
+
140
+ main ();
120
141
```
You can’t perform that action at this time.
0 commit comments