Initialize DeFiSDK
DeFi SDK directly connects to the Ethereum blockchain. You are welcome to use an Ethereum node of your choice to start using DeFi SDK.
If you don't have a node, in the example below you can use a node provided by Cloudflare and served through our domain.
from defisdk import DeFiSDK
ETHEREUM_NODE_URL = 'https://eth-mainnet.zerion.io/'
defi_sdk = DeFiSDK(ETHEREUM_NODE_URL)
package main
import defisdk "github.com/zeriontech/defi-sdk-go"
func main() {
ethereumNodeUrl := "https://eth-mainnet.zerion.io/"
sdk := defisdk.New(ethereumNodeUrl)
}
import { DeFiSDK } from 'defi-sdk';
const nodeUrl = 'https://eth-mainnet.zerion.io/';
const defiSdk = new DeFiSDK(nodeUrl);