Constructors
constructor
- new WalletSigner(__namedParameters: { privateKey: Buffer }): WalletSigner
-
Parameters
-
__namedParameters: { privateKey: Buffer }
Properties
privateKey
privateKey: Buffer
Methods
fetchAccount
- fetchAccount(__namedParameters: { rpcClient: RPCClient; version: TransactionVersion }): Promise<Account>
-
Parameters
Returns Promise<Account>
getNetwork
- getNetwork(): StacksTestnet
getSTXAddress
-
Parameters
Returns string
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>
-
Parameters
-
__namedParameters: { contractAddress: string; contractName: string; functionArgs: ClarityValue[]; functionName: string; nonce: number; postConditionMode: undefined | Allow | Deny; postConditions: undefined | PostCondition[] }
-
contractAddress: string
-
contractName: string
-
-
functionName: string
-
nonce: number
-
postConditionMode: undefined | Allow | Deny
-
postConditions: undefined | PostCondition[]
Returns Promise<StacksTransaction>
signContractDeploy
- signContractDeploy(__namedParameters: { codeBody: string; contractName: string; nonce: number; postConditionMode: undefined | Allow | Deny; postConditions: undefined | PostCondition[] }): Promise<StacksTransaction>
-
Parameters
-
__namedParameters: { codeBody: string; contractName: string; nonce: number; postConditionMode: undefined | Allow | Deny; postConditions: undefined | PostCondition[] }
-
codeBody: string
-
contractName: string
-
nonce: number
-
postConditionMode: undefined | Allow | Deny
-
postConditions: undefined | PostCondition[]
Returns 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>