Orchestrate Node SDK provides the following TypeScript examples:
Pegasys Orchestrate SDK requires Orchestrate to be installed.
Orchestrate is only available for PegaSys Orchestrate customers and partners.
If you are already a partner or customer but we did not provide the credentials to install Orchestrate, request access on Pegasys Zendesk support site.
To access Pegasys Zendesk support site, create an account with your company email or login using an existing Pegasys Zendesk account.
Alternatively, send an email from your company email to email@example.com.
You cannot continue without the registry credentials.
In order to try the examples, you need:
Get the examples by cloning the SDK repository
git clone https://github.com/PegaSysEng/orchestrate-node.git
Open a terminal and run
npm install from the SDK repository root directory.
Run the following examples in the order displayed in this page:
generate-account: generate four new Ethereum accounts in Orchestrate.
npm run example:generate-account.
register-contract: register the simple ERC20 token smart contract in Orchestrate contract registry.
npm run example:register-contract.
register-chain: register new chain "MyChain" with RPC endpoint located at 'http://geth:8545'.
npm run example:register-chain.
register-faucet: register new faucet account setting creditor account, limits and other rules.
npm run example:register-faucet.
consume: Start listener for Orchestrate kafka channels to pull transaction events and display the transaction receipt.
npm run example:consume.
Keep it running to visualise the following transaction examples receipts.
deploy-contract: send a deploy contract transaction to deploy the pre-registered ERC20 smart contract
npm run example:deploy-contract.
send-raw-tx: send raw transaction to transfer 1 ETH from an account to another.
npm run example:send-raw-tx.
send-tx: send a transaction to publish a simple ERC20 token smart contract.
npm run example:send-tx.
send-onetimekey-tx: use a disposable anonymous account to publish a simple ERC20 token smart contract.
npm run example:send-onetimekey-tx.
send-private-tx: send an Orion private transaction to publish a simple ERC20 token smart contract.
npm run example:send-private-tx.
send-transfer: transfer ETH to other accounts
npm run example:send-transfer.
send-transfer-with-priority: transfer ETH to other accounts with a high priority
npm run example:send-transfer-with-priority.
search: fetch your completed or pending transactions using their ids or idempotency_keys
npm run example:search.
sign-verify: Create an account, signs data and verifies the signature
npm run example:sign-verify.
sign-verify-typed-data: Create an account, signs typed data and verifies the signature
npm run example:sign-verify-typed-data.
Generated using TypeDoc