Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pte-browser-extension-sdk

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pte-browser-extension-sdk

This is Typescript/Javascript library for interacting with the Babylon PTE browser extension.

  • 0.1.28
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

PTE Browser extension SDK

Example

import { getAccountAddress, signTransaction } from 'pte-browser-extension-sdk';

const accountAddress = await getAccountAddress();
console.log("Account address: " + accountAddress);

const componentAddress = '0276b537d9fc474d86edd48bfaa2843e87b48765767357ab9e403d';
const manifest = new ManifestBuilder()
  .withdrawFromAccountByAmount(accountAddress, 1, 'resource_sim1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzqu57yag')
  .callMethod(componentAddress, 'buy_gumball', ['Decimal("1.0")'])
  .callMethodWithAllResources(accountAddress, 'deposit_batch')
  .build()
  .toString();
console.log("Manifest: " + manifest);

const receipt = await signTransaction(manifest);
console.log("Receipt: "  + receipt);

Build

npm install
npm run build

Test

npm run test

FAQs

Package last updated on 12 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc