ERC 721 & 20
ERC 721
Endpoint: https://sdk.komet.me/balance/erc721
Method
Request:
{
partnerId: String,
partnerKey: String,
chainId: Number,
walletAddress: String,
}
Response:
{
blockHash: <String>,
ownedNfts: [NftDetails],
totalCount: Number,
}
ERC 20
This API endpoint will help you fetch the ERC20 balances of the user created from the Komet Auth Service. (Chains: Polygon, Ethereum, EVM based)
Method
Endpoint: https://sdk.komet.me/balance/erc20
Request:
{
partnerId: String,
partnerKey: String,
chainId: Number,
tokenAddress: String (optional),
walletAddress: String,
}
Response:
{
tokenBalance: Number
}
ERC20 - Transfer
Initiate an ERC20 transfer from the user’s wallet to a given address. Ensure the wallet has the balance to execute the transfer for a successful transaction.
Method
Request:
{
bearerToken: string,
partnerId: string,
partnerKey: string,
userId: number,
amount: number,
toAddress: string,
chainId: number,
tokenAddress: string (optional),
}
Response:
{
transaction_hash: string,
}
Last updated
Was this helpful?