Class: Bundler
Constructors
Constructor
new Bundler(
bundlerBaseUrl,
bundlingAPIBasePath,
transactionWaitTimeoutMs,
signer,
httpClient): Bundler;
Parameters
Parameter | Type |
---|---|
bundlerBaseUrl | string |
bundlingAPIBasePath | string |
transactionWaitTimeoutMs | number |
signer | undefined | GalaChainSigner |
httpClient | HttpClient |
Returns
Bundler
Methods
hasSigner()
hasSigner(): boolean;
Returns
boolean
sendBundlerRequest()
sendBundlerRequest(
method,
body,
stringsInstructions): Promise<PendingTransaction>;
Parameters
Parameter | Type |
---|---|
method | string |
body | Record <string , unknown > |
stringsInstructions | string [] |
Returns
Promise
<PendingTransaction
>
signObject()
signObject<TInputType>(methodName, toSign): Promise<TInputType & object>;
Type Parameters
Type Parameter |
---|
TInputType extends Record <string , unknown > |
Parameters
Parameter | Type |
---|---|
methodName | string |
toSign | TInputType |
Returns
Promise
<TInputType
& object
>