Skip to content

gatechain/gatewallet-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GateWallet Demo

start

TODO: [email protected]

yarn start

Function

import { createWalletFromGateChainAccount } from "gatewallet";

// 派生钱包 (弹窗第1次)
const res = await createWalletFromGateChainAccount(signer, config, null);
// 获取签名 (弹窗第2次)
const accountSignature = await res.gateWallet.signCreateAccountAuthorization(
  provider,
  signer
);

// 交易签名
// tx: 交易体
// type: "order" | "cancelOrder" | "withdraw"
const signature = res.gateWallet.getSignature(tx, type);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published