APIs & SDKs
Log In
APIs & SDKs

SDK Reference (EvmService)

Reference for the common EvmService SDK extension

Throughout many of Particle Network's SDKs, a common EvmService module is included. It enables direct programmatic utilization of Particle's suite of enhanced RPC endpoints, and more (such as transaction construction, contract interaction, etc.). These methods provide simple ways of retrieving rich on-chain data with minimal added complexity.

A full reference of common methods alongside their parameters can be found below.

ClassMethodsParameters (* indicates optional)
EvmServicerpcmethod, params
EvmServicegetPriceaddresses, currencies
EvmServicegetTokensAndNFTsaddress
EvmServicegetTokensaddress
EvmServicegetNFTsaddress
EvmServicegetTransactionsByAddressaddress
EvmServicesuggeseGasFee
EvmServiceestimateGasfrom, to, value, data
EvmServiceerc20TransfercontractAddress, to, amount
EvmServiceerc20ApprovecontractAddress, spender, amount
EvmServiceerc20TransferFromcontractAddress, from, to, amount
EvmServiceerc721SafeTransferFromcontractAddress, from, to, tokenId
EvmServiceerc1155SafeTransferFromcontractAddress, from, to, id, amount, data*
EvmServiceabiEncodeFunctionCallcontractAddress, methodName, params, abiJsonString
EvmServicegetTokenByTokenAddressaddress, tokenAddresses
EvmServicereadContractcontractAddress, methodName, params, abiJsonString
EvmServicewriteContractfrom, contractAddress, methodName, params, abiJsonString, gasFeeLevel*
EvmServicecreateTransactionfrom, data, value, to, gasFeeLevel*
EvmServicegetSmartAccounteoaAddresses, version