Signature
Type JsonRpcSigner(for browser)
constructor
/**
* @param {provider}
*/
newRpcSignerWithProvider(provider)Example
await window.ethereum.request({ method: 'eth_requestAccounts' });
const provider = window.ethereum;
const signer = new wasm.newRpcSignerWithProvider(provider);func initZklinkSigner
/**
* @param {string | undefined} [signature]
* @returns {Promise<void>}
*/
initZklinkSigner(signature)func address
func signatureSeed
Type Signer(for nodejs)
constructor
func getPubkey
func getPubkeyHash
func signMusig
func signChangePubkeyWithOnchain
func signChangePubkeyWithEthEcdsaAuth
func signChangePubkeyWithCreate2DataAuth
Example
func signWithdraw
func signTransfer
func signForcedExit
func createSignedOrder
func signOrderMatching
Example
func createSignedContract
func signContractMatching
func signAutoDeleveraging
func signFunding
func signLiquidation
func getZkLinkSigner
Type ZkLinkSigner
func ethSig
func starknetSig
Last updated