Interface: RemoteSigner
ordinals.RemoteSigner
Methods
getNetwork
▸ getNetwork(): Promise
\<Network
>
Get the configured Bitcoin network.
Returns
Promise
\<Network
>
A promise that resolves to the current network.
Defined in
ordinals/signer.ts:27
getPublicKey
▸ getPublicKey(): Promise
\<string
>
Get the configured public key of the signer.
Returns
Promise
\<string
>
A promise that resolves to the hex encoded public key.
Defined in
ordinals/signer.ts:33
getUtxoIndex
▸ getUtxoIndex(toAddress
, txId
): Promise
\<number
>
Get the index of a UTXO in a transaction based on the recipient address.
Parameters
Name | Type | Description |
---|---|---|
toAddress | string | The address of the recipient. |
txId | string | The transaction ID to check. |
Returns
Promise
\<number
>
A promise that resolves to the UTXO index.
Defined in
ordinals/signer.ts:49
sendToAddress
▸ sendToAddress(toAddress
, amount
): Promise
\<string
>
Send an amount of Satoshis to the recipient.
Parameters
Name | Type | Description |
---|---|---|
toAddress | string | The address of the recipient. |
amount | number | The Satoshis the recipient should receive. |
Returns
Promise
\<string
>
A promise that resolves to the transaction ID.
Defined in
ordinals/signer.ts:41
signPsbt
▸ signPsbt(inputIndex
, psbt
): Promise
\<Psbt
>
Sign the PSBT at the specified input index.
Parameters
Name | Type | Description |
---|---|---|
inputIndex | number | The input index to sign for. |
psbt | Psbt | The PSBT containing that input. |
Returns
Promise
\<Psbt
>
A promise that resolves to the signed PSBT.
Defined in
ordinals/signer.ts:57