- Preparing search index...
- The search index is not available
@zrclib/sdk
Constructors
constructor
- new ShieldedPoolProver(account, proofGen): ShieldedPoolProver
-
Properties
Private
account
Private
proofGen
Methods
shield
- shield(amount, asset?, swapParams?, checkBlocklist?): Promise<FormattedProof>
-
Parameters
-
amount: BigNumberish
-
asset: BigNumberish = 0
-
swapParams: SwapParams = ...
-
checkBlocklist: boolean = false
Returns Promise<FormattedProof>
transfer
- transfer(amount, toPubKey, asset?, swapParams?, checkBlocklist?): Promise<FormattedProof>
-
Parameters
-
amount: BigNumberish
-
toPubKey: string
-
asset: BigNumberish = 0
-
swapParams: SwapParams = ...
-
checkBlocklist: boolean = false
Returns Promise<FormattedProof>
unshield
- unshield(amount, recipientEthAddress, asset?, swapParams?, checkBlocklist?): Promise<FormattedProof>
-
Parameters
-
amount: BigNumberish
-
recipientEthAddress: string
-
asset: BigNumberish = 0
-
swapParams: SwapParams = ...
-
checkBlocklist: boolean = false
Returns Promise<FormattedProof>
Generate a proof to add tokens to the shielded pool