Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OrchestrateClient

Hierarchy

  • OrchestrateClient

Index

Constructors

constructor

Methods

createAccount

  • createAccount(request?: types.ICreateAccountRequest, authToken?: undefined | string, headers?: IHeaders): Promise<IAccount>
  • Creates a new account

    Parameters

    • Optional request: types.ICreateAccountRequest

      account creation request data

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<IAccount>

deleteChain

  • deleteChain(chainUUID: string, authToken?: undefined | string, headers?: IHeaders): Promise<void>
  • Delete a registered chain

    Parameters

    • chainUUID: string

      uuid of registered chain

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<void>

deployContract

  • Deploy contract request

    Parameters

    • deployRequest: IDeployContractRequest

      deploy contract request data

    • Optional idempotencyKey: undefined | string

      Optional transaction unique identifier

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<ITransaction>

getAccount

  • getAccount(address: string, authToken?: undefined | string, headers?: IHeaders): Promise<IAccount>
  • Fetch an account by address

    Parameters

    • address: string

      account's Ethereum address

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<IAccount>

getContract

  • getContract(name: string, tag?: undefined | string, authToken?: undefined | string, headers?: IHeaders): Promise<IContract>
  • Fetch a contract by name and tag

    Parameters

    • name: string

      Contract name

    • Optional tag: undefined | string

      Contract tag

    • Optional authToken: undefined | string

      authorization token

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<IContract>

    the contract details

getContractTags

  • getContractTags(name: string, authToken?: undefined | string, headers?: IHeaders): Promise<string[]>
  • Gets all the tags of a contract by name

    Parameters

    • name: string

      Contract name

    • Optional authToken: undefined | string

      authorization token

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<string[]>

    the tags of the contract

getContractsCatalog

  • getContractsCatalog(authToken?: undefined | string, headers?: IHeaders): Promise<string[]>
  • Fetch a list of registered contract names

    Parameters

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<string[]>

getTransaction

  • getTransaction(txUUID: string, authToken?: undefined | string, headers?: IHeaders): Promise<ITransaction>
  • Fetch a transaction by UUID

    Parameters

    • txUUID: string

      transaction UUID

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<ITransaction>

importAccount

registerChain

registerContract

registerFaucet

searchAccounts

  • searchAccounts(searchRequest?: types.ISearchAccountsRequest, authToken?: undefined | string, headers?: IHeaders): Promise<IAccount[]>
  • Search for accounts

    Parameters

    • Optional searchRequest: types.ISearchAccountsRequest

      accounts search filters

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<IAccount[]>

searchChains

  • searchChains(authToken?: undefined | string, headers?: IHeaders): Promise<IChain[]>
  • Fetch list of registered chains

    Parameters

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<IChain[]>

searchFaucets

  • searchFaucets(authToken?: undefined | string, headers?: IHeaders): Promise<IFaucet[]>
  • Fetch list of registered faucets

    Parameters

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<IFaucet[]>

searchTransactions

sendRawTransaction

  • Send raw transaction request

    Parameters

    • sendRawRequest: ISendRawRequest

      raw transaction request data

    • Optional idempotencyKey: undefined | string

      Optional transaction unique identifier

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<ITransaction>

sendTransaction

  • Send contract transaction request

    Parameters

    • sendRequest: ISendTransactionRequest

      transaction request data

    • Optional idempotencyKey: undefined | string

      Optional transaction unique identifier

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<ITransaction>

signMessage

  • Signs a message using a registered Ethereum account

    Parameters

    • address: string

      account's Ethereum address

    • request: ISignMessageRequest

      sign message request

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<string>

signTypedData

  • Signs a typed data message using a registered Ethereum account

    Parameters

    • address: string

      account's Ethereum address

    • request: ISignTypedDataRequest

      sign typed data request

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<string>

transfer

  • Send transfer transaction request

    Parameters

    • transferRequest: ITransferRequest

      transfer transaction request data

    • Optional idempotencyKey: undefined | string

      Optional transaction unique identifier

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<ITransaction>

updateAccount

updateChain

  • Update a registered chain

    Parameters

    • chainUUID: string

      uuid of registered chain

    • chainRequest: IUpdateChainRequest

      register chain request data

    • Optional authToken: undefined | string

      Bearer token. Required when multi-tenancy is enabled

    • Optional headers: IHeaders

      HTTP request headers.

    Returns Promise<IChain>

verifyMessage

verifyTypedDataSignature

Generated using TypeDoc