Skip to content

ZcashSwapService

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / ZcashSwapService

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8942

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-DXh2IGkz.d.ts:8949

ZcashSwapServiceConfig

ZcashSwapService

getQuote(params): Promise<ZcashQuote>

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8953

Get a quote for swapping to ZEC

ZcashQuoteParams

Promise<ZcashQuote>


executeSwapToShielded(params): Promise<ZcashSwapResult>

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8965

Execute a swap to Zcash shielded pool

ZcashSwapParams

Promise<ZcashSwapResult>


getSwapStatus(requestId): Promise<ZcashSwapResult | null>

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8977

Get swap status

string

Promise<ZcashSwapResult | null>


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

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8981

Wait for swap completion

string

number

number

Promise<ZcashSwapResult>


getSupportedChains(): Promise<ZcashSwapSourceChain[]>

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8985

Get supported source chains

Promise<ZcashSwapSourceChain[]>


getSupportedTokens(chain): ZcashSwapSourceToken[]

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8989

Get supported source tokens for a chain

ZcashSwapSourceChain

ZcashSwapSourceToken[]


isRouteSupported(chain, token): boolean

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8993

Check if a swap route is supported

ZcashSwapSourceChain

ZcashSwapSourceToken

boolean