github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/docs/reference/gno-js-client/gno-wallet.md (about) 1 --- 2 id: gno-js-wallet 3 --- 4 5 # Gno Wallet 6 7 The `Gno Wallet` is an extension on the `tm2-js-client` `Wallet`, outlined [here](../tm2-js-client/wallet.md). 8 9 ## Account Methods 10 11 ### transferFunds 12 13 Initiates a native currency transfer transaction between accounts 14 15 #### Parameters 16 17 * `to` **string** the bech32 address of the receiver 18 * `funds` **Map<string, number\>** the denomination -> value map for funds 19 * `fee` **TxFee** the custom transaction fee, if any 20 21 Returns **Promise<string\>** 22 23 #### Usage 24 25 ```ts 26 let fundsMap = new Map<string, number>([ 27 ["ugnot", 10], 28 ]); 29 30 await wallet.transferFunds('g1flk9z2qmkgqeyrl654r3639rzgz7xczdfwwqw7', fundsMap); 31 // returns the transaction hash 32 ``` 33 34 ### callMethod 35 36 Invokes the specified method on a GNO contract 37 38 #### Parameters 39 40 * `path` **string** the gno package / realm path 41 * `method` **string** the method name 42 * `args` **string[]** the method arguments, if any 43 * `funds` **Map<string, number\>** the denomination -> value map for funds 44 * `fee` **TxFee** the custom transaction fee, if any 45 46 Returns **Promise<string\>** 47 48 #### Usage 49 50 ```ts 51 let fundsMap = new Map<string, number>([ 52 ["ugnot", 10], 53 ]); 54 55 await wallet.callMethod('gno.land/r/demo/foo20', 'TotalBalance', []); 56 // returns the transaction hash 57 ``` 58 59 ### deployPackage 60 61 Deploys the specified package / realm 62 63 #### Parameters 64 65 * `gnoPackage` **MemPackage** the package / realm to be deployed 66 * `funds` **Map<string, number>** the denomination -> value map for funds 67 * `fee` **TxFee** the custom transaction fee, if any 68 69 Returns **Promise<string\>** 70 71 #### Usage 72 73 ```ts 74 const memPackage: MemPackage = // ... 75 76 await wallet.deployPackage(memPackage); 77 // returns the transaction hash 78 ```