UnisatSigner
bitcoinjs-lib / UnisatSigner
Class: UnisatSigner
Defined in: packages/scrypt-ts-btc/src/signers/unisatSigner.ts:29
a [signer][https://docs.scrypt.io/how-to-deploy-and-call-a-contract/#signer](https://docs.scrypt.io/how-to-deploy-and-call-a-contract/#signer) which implemented the protocol with the [Unisat wallet][https://unisat.io](https://unisat.io), and dapps can use to interact with the Unisat wallet
Implements
Constructors
new UnisatSigner()
new UnisatSigner(
unisat
):UnisatSigner
Defined in: packages/scrypt-ts-btc/src/signers/unisatSigner.ts:32
Parameters
unisat
Returns
Methods
getAddress()
getAddress():
Promise
\<string
>
Defined in: packages/scrypt-ts-btc/src/signers/unisatSigner.ts:45
Get address of current signer.
Returns
Promise
\<string
>
Implementation of
getPublicKey()
getPublicKey():
Promise
\<string
>
Defined in: packages/scrypt-ts-btc/src/signers/unisatSigner.ts:50
Get publicKey of current signer.
Returns
Promise
\<string
>
Implementation of
getUnisatAPI()
getUnisatAPI():
UnisatAPI
Defined in: packages/scrypt-ts-btc/src/signers/unisatSigner.ts:36
Returns
signPsbt()
signPsbt(
psbtHex
,options
?):Promise
\<string
>
Defined in: packages/scrypt-ts-btc/src/signers/unisatSigner.ts:54
traverse all inputs that match the current address to sign.
Parameters
psbtHex
string
options?
Returns
Promise
\<string
>
Implementation of
signPsbts()
signPsbts(
reqs
):Promise
\<string
[]>
Defined in: packages/scrypt-ts-btc/src/signers/unisatSigner.ts:58
same as signPsbt, but sign multiple PSBTs at once.
Parameters
reqs
object
[]
Returns
Promise
\<string
[]>