Arcium LogoArcium TS SDK Docs

uploadCircuit

uploadCircuit(provider, circuitName, mxeProgramID, rawCircuit, logging, chunkSize): Promise<string[]>

Uploads a circuit to the blockchain, splitting it into multiple accounts if necessary.

Parameters

ParameterTypeDefault valueDescription
providerAnchorProviderundefinedThe Anchor provider to use for transactions.
circuitNamestringundefinedThe name of the circuit.
mxeProgramIDPublicKeyundefinedThe public key of the MXE program.
rawCircuitUint8ArrayundefinedThe raw circuit data as a Uint8Array.
loggingbooleantrueWhether to log progress (default: true).
chunkSizenumber500The number of upload transactions to send in parallel (default: 500).

Returns

Promise<string[]>

An array of transaction signatures for all upload and finalize transactions.

On this page