New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@aut-labs/sdk-biconomy

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aut-labs/sdk-biconomy

It a biconomy SDK wrapper library to help with the issues coming from installing with webpack 5 polyfills.

latest
npmnpm
Version
0.0.2
Version published
Maintainers
4
Created
Source

Overview

It a biconomy SDK wrapper library to help with the issues coming from installing with webpack 5 polyfills.

Biconomy SDK

Biconomy Mexa

Installation

npm i @aut-labs-private/sdk-biconomy

or if you prefer using yarn yarn @aut-labs-private/sdk-biconomy

Get started

Example sending EIP712 transaction

export interface ISDKBiconomyWrapper {
  initializeBiconomy(signerOrProvider: EtherSigner): Promise<void>;

  canSendEIP712Transaction(address: string): boolean;

  sendEIP712Transaction(
    contract: Contract,
    data: string
  ): Promise<SDKContractGenericResponse<BiconomyEvent>>;
}
const provider = new ethers.providers.Web3Provider(window.ethereum);
const signer = provider.getSigner();

const biconomy = new SDKBiconomyWrapper({
      enableDebugMode: true,
      apiKey: process.env.apiKey,
      contractAddresses: [0x...],
});

await biconomy.initializeBiconomy(signer);

const contract = new ethers.Contract(0x, abi, signer);

let { data } = await contract.populateTransaction.method(...args);


const response = await biconomy.sendEIP712Transaction(contract, data);

const {
  isSuccess
  errorMessage,
  data,
  transactionHash,
} = response;

More usage examples

How to use with AutSDK

Keywords

sdk

FAQs

Package last updated on 27 Jul 2023

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