/** * This file was auto-generated by Fern from our API Definition. */ import * as core from "../../../../core"; import * as Syndicate from "../../.."; export declare namespace Transact { interface Options { token: core.Supplier; } interface RequestOptions { timeoutInSeconds?: number; maxRetries?: number; } } export declare class Transact { protected readonly _options: Transact.Options; constructor(_options: Transact.Options); /** * Send transaction to blockchain * @throws {@link Syndicate.transact.DuplicateTransactionError} * @throws {@link Syndicate.transact.BadRequestError} * @throws {@link Syndicate.transact.InternalError} * @throws {@link Syndicate.transact.InvalidRequestIdError} * * @example * await syndicate.transact.sendTransaction({ * requestId: "083be671-9f3f-41c0-9377-8c33aab3b413", * projectId: "638d1d78-d63d-4cda-9f1e-4d0799acfeee", * contractAddress: "0x94f6E9c420Db1566A3c035Df291F206eBfAfC762", * chainId: 80001, * functionSignature: "addPerson((string name, uint16 age) person))", * args: { * "person": { * "name": "Person", * "age": 55 * } * } * }) */ sendTransaction(request: Syndicate.transact.SendTransactionRequest, requestOptions?: Transact.RequestOptions): Promise; protected _getAuthorizationHeader(): Promise; }