Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WalletSigner

Hierarchy

  • WalletSigner

Index

Constructors

constructor

  • new WalletSigner(__namedParameters: { privateKey: Buffer }): WalletSigner

Properties

privateKey

privateKey: Buffer

Methods

fetchAccount

  • fetchAccount(__namedParameters: { rpcClient: RPCClient; version: TransactionVersion }): Promise<Account>

getNetwork

  • getNetwork(): StacksTestnet

getSTXAddress

getSTXPrivateKey

  • getSTXPrivateKey(): Buffer

signContractCall

  • signContractCall(__namedParameters: { contractAddress: string; contractName: string; functionArgs: ClarityValue[]; functionName: string; nonce: number; postConditionMode: undefined | Allow | Deny; postConditions: undefined | PostCondition[] }): Promise<StacksTransaction>

signContractDeploy

  • signContractDeploy(__namedParameters: { codeBody: string; contractName: string; nonce: number; postConditionMode: undefined | Allow | Deny; postConditions: undefined | PostCondition[] }): Promise<StacksTransaction>

signSTXTransfer

  • signSTXTransfer(__namedParameters: { amount: string; memo: undefined | string; nonce: number; postConditionMode: undefined | Allow | Deny; postConditions: undefined | PostCondition[]; recipient: string }): Promise<StacksTransaction>
  • Parameters

    • __namedParameters: { amount: string; memo: undefined | string; nonce: number; postConditionMode: undefined | Allow | Deny; postConditions: undefined | PostCondition[]; recipient: string }
      • amount: string
      • memo: undefined | string
      • nonce: number
      • postConditionMode: undefined | Allow | Deny
      • postConditions: undefined | PostCondition[]
      • recipient: string

    Returns Promise<StacksTransaction>

Generated using TypeDoc