1.0.3 • Published 11 months ago

@castframework/blockchain-driver-eth v1.0.3

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
11 months ago

Ethereum Blockchain Driver

Usage

import { EthereumBlockchainDriver } from '@castframework/blockchain-driver-eth';

const driver = new EthereumBlockchainDriver({
  config: {
    // Config here
  },
  signer: new PrivateKeySigner('your private key'),
  nodeURL: 'your node url',
});

Configuration

Default

PropertyTypeDescriptionDefault value
nodeURLstringTODO description5
signernumberTODO description5
configEthereumConfigEthereum driver configuration objectSee below
config.eventDelayInBlocksnumberTODO description5
config.keepAliveIntervalInSecondsnumberTODO description10
config.subscriptionsLogIntervalInSecondsnumberTODO description10
config.minGasPriceInGWeinumberTODO description100
config.maxGasPriceInGWeinumberTODO description350
config.gasPriceFactornumberTODO description1.2
config.transactionBoostFactornumberTODO description1.2
config.routineCallLoggingPeriodnumberTODO description0
config.transactionInfoProviderFactoryTransactionInfoProviderFactory\<EthereumBlockchainDriver>TODO description0

Example

import { EthereumConfig } from '@castframework/blockchain-driver-eth';

const config: EthereumConfig = {
  numberOfConfirmation: 5,
  eventDelayInBlocks: 5,
}