
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@arkane-network/web3-arkane-provider
Advanced tools
The Arkane Web3 provider is a smart wrapper around the existing Web3 Ethereum JavaScript API.
If you already have an application running using web3 technology, you can make use of this wrapper to leverage the full potential of Arkane Network. Your existing infrastructure is just one code block away from being Arkane Enabled.
npm i @arkane-network/web3-arkane-provider
Add the following script to the head of your page:
<script src="/node_modules/@arkane-network/web3-arkane-provider/dist/web3-arkane-provider.js"></script>
After adding the javascript file to your page, a global Arkane object is added to your window. This object is the gateway for creating the web3 wrapper and fully integrates the Arkane Connect JS SDK.
const options = {
clientId: 'YOUR_CLIENT_ID',
rpcUrl: 'https://kovan.infura.io/v3/YOUR-PROJECT-ID', //optional
environment: 'staging', //optional, production by default
signMethod: 'POPUP', //optional, REDIRECT by default
bearerTokenProvider: () => 'obtained_bearer_token' //optional, default undefined
};
Arkane.createArkaneProviderEngine(options).then(provider => {
web3 = new Web3(provider);
});
The web3 instance now works as if it was injected by parity or metamask. You can fetch your wallets or sign transactions and messages.
If you provide your own implementation of bearerTokenProvider
, the web3 provider will not attempt to obtain an authentication code, but rather use the one provided by you.
Although we use Arkane Connect JS under the hood, the functionality of the web3 wrapper isn't limited to the web3 API. Linking or fetching profile information is not supported by Web3, but it is in our wrapper. After creating an Arkane Provider Engine, we add an instance of ArkaneConnect to the global Arkane object. As a result, it's possible to call Arkane Connect JS natively, like so.
Arkane.arkaneConnect().linkWallets();
The full documentation of the Arkane Connect JS SDK can be found here.
As an example, we transformed our Arketype demo to sign transactions and data using web3.
Not sure yet what Arkane Network is all about, where are some resources to help you get a better view:
FAQs
Arkane-enabled Web3 Provider for the web
The npm package @arkane-network/web3-arkane-provider receives a total of 190 weekly downloads. As such, @arkane-network/web3-arkane-provider popularity was classified as not popular.
We found that @arkane-network/web3-arkane-provider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.