Skip to main content

Class: Bundler

Constructors​

Constructor​

new Bundler(
bundlerBaseUrl,
bundlingAPIBasePath,
transactionWaitTimeoutMs,
signer,
httpClient): Bundler;

Parameters​

ParameterType
bundlerBaseUrlstring
bundlingAPIBasePathstring
transactionWaitTimeoutMsnumber
signerundefined | GalaChainSigner
httpClientHttpClient

Returns​

Bundler

Methods​

hasSigner()​

hasSigner(): boolean;

Returns​

boolean


sendBundlerRequest()​

sendBundlerRequest(
method,
body,
stringsInstructions): Promise<PendingTransaction>;

Parameters​

ParameterType
methodstring
bodyRecord<string, unknown>
stringsInstructionsstring[]

Returns​

Promise<PendingTransaction>


signObject()​

signObject<TInputType>(methodName, toSign): Promise<TInputType & object>;

Type Parameters​

Type Parameter
TInputType extends Record<string, unknown>

Parameters​

ParameterType
methodNamestring
toSignTInputType

Returns​

Promise<TInputType & object>