@arcium-hq/clientFunctions
uploadCircuit
uploadCircuit(
provider,circuitName,mxeProgramId,rawCircuit,logging,chunkSize,confirmOptions?):Promise<string[]>
Upload a circuit to the blockchain, splitting it into multiple accounts if necessary.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
provider | AnchorProvider | undefined | Anchor provider to use for transactions. |
circuitName | string | undefined | Name of the circuit. |
mxeProgramId | PublicKey | undefined | Public key of the MXE program. |
rawCircuit | Uint8Array | undefined | Raw circuit data as a Uint8Array. |
logging | boolean | true | Whether to log progress (default: true). |
chunkSize | number | 500 | Number of upload transactions to send in parallel (default: 500). |
confirmOptions? | ConfirmOptions | undefined | Transaction confirmation options. |
Returns
Promise<string[]>
Array of transaction signatures for all upload and finalize transactions.