uploadCircuit
uploadCircuit(
provider,circuitName,mxeProgramID,rawCircuit,logging,chunkSize):Promise<string[]>
Uploads a circuit to the blockchain, splitting it into multiple accounts if necessary.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
provider | AnchorProvider | undefined | The Anchor provider to use for transactions. |
circuitName | string | undefined | The name of the circuit. |
mxeProgramID | PublicKey | undefined | The public key of the MXE program. |
rawCircuit | Uint8Array | undefined | The raw circuit data as a Uint8Array. |
logging | boolean | true | Whether to log progress (default: true). |
chunkSize | number | 500 | The number of upload transactions to send in parallel (default: 500). |
Returns
Promise<string[]>
An array of transaction signatures for all upload and finalize transactions.