Skip to main content

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

NameTypeDescription
toAddressstringThe address of the recipient.
txIdstringThe 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

NameTypeDescription
toAddressstringThe address of the recipient.
amountnumberThe 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

NameTypeDescription
inputIndexnumberThe input index to sign for.
psbtPsbtThe PSBT containing that input.

Returns

Promise\<Psbt>

A promise that resolves to the signed PSBT.

Defined in

ordinals/signer.ts:57