createRecentSignatureConfirmationPromiseFactory
Call Signature
createRecentSignatureConfirmationPromiseFactory(
config
):GetRecentSignatureConfirmationPromiseFn
Creates a promise that resolves when a recently-landed transaction achieves the target confirmation commitment, and throws when the transaction fails with an error.
The status of recently-landed transactions is available in the network's status cache. This
confirmation strategy will only yield a result if the signature is still in the status cache. To
fetch the status of transactions older than those available in the status cache, use the
GetSignatureStatusesApi.getSignatureStatuses method setting the
searchTransactionHistory
configuration param to true
.
Parameters
Parameter | Type | Description |
---|---|---|
config | CreateRecentSignatureConfirmationPromiseFactoryConfig <"devnet" > |
Returns
GetRecentSignatureConfirmationPromiseFn
Example
Call Signature
createRecentSignatureConfirmationPromiseFactory(
config
):GetRecentSignatureConfirmationPromiseFn
Creates a promise that resolves when a recently-landed transaction achieves the target confirmation commitment, and throws when the transaction fails with an error.
The status of recently-landed transactions is available in the network's status cache. This
confirmation strategy will only yield a result if the signature is still in the status cache. To
fetch the status of transactions older than those available in the status cache, use the
GetSignatureStatusesApi.getSignatureStatuses method setting the
searchTransactionHistory
configuration param to true
.
Parameters
Parameter | Type | Description |
---|---|---|
config | CreateRecentSignatureConfirmationPromiseFactoryConfig <"testnet" > |
Returns
GetRecentSignatureConfirmationPromiseFn
Example
Call Signature
createRecentSignatureConfirmationPromiseFactory(
config
):GetRecentSignatureConfirmationPromiseFn
Creates a promise that resolves when a recently-landed transaction achieves the target confirmation commitment, and throws when the transaction fails with an error.
The status of recently-landed transactions is available in the network's status cache. This
confirmation strategy will only yield a result if the signature is still in the status cache. To
fetch the status of transactions older than those available in the status cache, use the
GetSignatureStatusesApi.getSignatureStatuses method setting the
searchTransactionHistory
configuration param to true
.
Parameters
Parameter | Type | Description |
---|---|---|
config | CreateRecentSignatureConfirmationPromiseFactoryConfig <"mainnet" > |
Returns
GetRecentSignatureConfirmationPromiseFn