
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@eversdk/net
Advanced tools
Collection of network providers for TVM Blockchains.
yarn add @eversdk/net
or npm i @eversdk/net
CloudProvider provides methods with type wrappers, such as sendExternalMessage
:
import { Builder } from '@eversdk/ton'
import { CloudProvider } from '@eversdk/net'
async function main () {
// usage of https://www.evercloud.dev
const provider = new CloudProvider({
endpoint: 'https://mainnet.evercloud.dev/.../graphql'
})
const c = new Builder().cell()
await provider.sendExternalMessageCell(c)
}
main()
For extended usage of CloudProvider (evercloud graphql), use graphql code generation with the-guild and @apollo/client.
import { CloudProvider } from '@eversdk/net'
import { graphql } from './codegen/generated'
// ./codegen/generated –> path to the-guild codegen result
const getBalance = apollo.graphql(`
query getBalance($address: String!) {
blockchain {
account (address: $address) {
info { balance(format: DEC) }
}
}
}
`)
async function main () {
const provider = new CloudProvider({
endpoint: 'https://mainnet.evercloud.dev/.../graphql'
})
const address = '0:0000000000000000000000000000000000000000000000000000000000000000'
const result = await provider.client.query({
query: getBalance,
variables: { address }
})
// fully typed result based on the graphql schema
console.log(result.data.blockchain?.account?.info?.balance)
}
main()
"@apollo/client": "3.7.14"
"@eversdk/ton": "0.1.0"
"graphql": "16.6.0"
MIT
FAQs
Collection of network providers for TVM Blockchains
We found that @eversdk/net demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.