this a plug-in connected to Web3.
You can connect to Near.
Can interact with DAPP web pages.
Add Catmask to browser
What's next for CatMask Wallet
- For a more secure operation, enter a short password when re-opening the browser.
- Optimized interface and small features
- Web3-React-near library, connected to UI, and compatible with other wallets
- other extension
Developer documentation
Install
src
https://raw.githubusercontent.com/CatMask-Wallet/near-wallet/main/public/web.js
npm
TODO
get accoudId
catMask.getAccoutId(e => {
console.log(e) // accoundID
})
#### sign Message
catMask.signMessage('you messageText..', (e)=>{
console.log(e) // {publicKey: '', signature: 'base64'}
})
#### sign Transaction
catMask.signTransaction(new Uint8Array([2, 88]).toString() /*transaction hash*/, (e)=>{
console.log(e) // {publicKey: '', signature: Uint8Array.toString()}
})
Project use examples: /demo/live.html
sign TransactionAndSendRaw
- transaction and send
catMask.signTransactionAndSendRaw({
contractId: 'wrap.testnet',
actions: [
// FunctionCall
{
methodName: 'near_deposit2',
args: {},
gas: '10000000000000',
deposit: '1000000000000000000000000',
},
// transfer
{
deposit: '1000000000000000000000000'
},
// stake
{
stake: '1000000000000000000000000',
publicKey: ''
}
],
}, (e) => {
// {hash: '', res: {}}
console.log(e)
})

Log in or sign up for Devpost to join the conversation.