ERC 721 & 20

ERC 721

  • Method This API endpoint will help you fetch the ERC721 balances of the user created from the Komet Auth Service. (Chains: Polygon, Ethereum, EVM based)

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)


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.

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?