zetamarkets/sdk

Add way to handle timeout errors and give callback on confirmation or failure.

xjcaa opened this issue · 1 comments

xjcaa commented
Add way to handle timeout errors and give callback on confirmation or failure.
xjcaa commented
export const TIMEOUT_FAILURE: string = "Error: Transaction was not confirmed";
export const BLOCKHASH_FAILURE: string = "Error: failed to get recent blockhash";
export const RAW_TRANSACTION_FAILURE: string = "Error: Raw transaction";
export const TRANSACTION_SIMULATION_FAILURE: string = "Error: failed to send transaction";