Skip to content

ZcashSwapService

SIP Protocol API Reference v0.7.0


SIP Protocol API Reference / ZcashSwapService

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:5730

Zcash Swap Service

Enables cross-chain swaps from ETH/SOL/NEAR to Zcash’s shielded pool.

If production mode is configured without a bridge provider

new ZcashSwapService(config): ZcashSwapService

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:5737

ZcashSwapServiceConfig

ZcashSwapService

getQuote(params): Promise<ZcashQuote>

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:5741

Get a quote for swapping to ZEC

ZcashQuoteParams

Promise<ZcashQuote>


executeSwapToShielded(params): Promise<ZcashSwapResult>

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:5753

Execute a swap to Zcash shielded pool

ZcashSwapParams

Promise<ZcashSwapResult>


getSwapStatus(requestId): Promise<ZcashSwapResult | null>

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:5765

Get swap status

string

Promise<ZcashSwapResult | null>


waitForCompletion(requestId, timeout?, pollInterval?): Promise<ZcashSwapResult>

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:5769

Wait for swap completion

string

number

number

Promise<ZcashSwapResult>


getSupportedChains(): Promise<ZcashSwapSourceChain[]>

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:5773

Get supported source chains

Promise<ZcashSwapSourceChain[]>


getSupportedTokens(chain): ZcashSwapSourceToken[]

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:5777

Get supported source tokens for a chain

ZcashSwapSourceChain

ZcashSwapSourceToken[]


isRouteSupported(chain, token): boolean

Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:5781

Check if a swap route is supported

ZcashSwapSourceChain

ZcashSwapSourceToken

boolean