1.84.0 • Published 10 months ago

@arianee/arianee-api-client v1.84.0

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

@arianee/arianee-api-client

The ariane-api-client library allows you to interact with the Arianee blockchain through the Arianee API. It provides methods to get information related to multichain, network, and identities.

Constructor

new ArianeeApiClient(arianeeApiUrl?, fetchLike?)

  • arianeeApiUrl (optional): A string representing the Arianee API URL. The default value is 'https://api.arianee.com'.
  • fetchLike (optional): A function to perform HTTP requests. The default value is fetch if running in a browser environment, and node-fetch if running in a Node.js environment.

Methods

multichain

An object containing methods related to the multichain protocol.

getEvents(chainType, smartContractName, eventName, filters?)

Returns an array of BlockchainEvent objects representing an event in the blockchain.

  • chainType: A ChainType enum value representing the chain type (mainnet or testnet).
  • smartContractName: A SmartContractNames enum value representing the smart contract name.
  • eventName: A blockchainEventsName enum value representing the event name.
  • filters (optional): An object containing additional parameters to filter the events.
const events = await client.multichain.getEvents('mainnet', 'ArianeeSmartAsset', 'Transfer');
getOwnedNfts(chainType, address)

Returns an array of smartAssetInfo objects representing the owned NFTs by the specified address.

  • chainType: A ChainType enum value representing the chain type (mainnet or testnet).
  • address: A string representing the owner's address.
const nfts = await client.multichain.getOwnedNfts('mainnet', '0x1234567890123456789012345678901234567890');
getReceivedMessages(chainType, address)

Returns an array of decentralizedMessageInfo objects representing the received decentralized messages by the specified address.

  • chainType: A ChainType enum value representing the chain type (mainnet or testnet).
  • address: A string representing the recipient's address.
const messages = await client.multichain.getReceivedMessages('mainnet', '0x1234567890123456789012345678901234567890');
getIdentity(address)

Returns a brandIdentityInfo object representing the brand identity associated with the specified address.

  • address: A string representing the brand identity address.
const identity = await client.multichain.getIdentity('0x1234567890123456789012345678901234567890');

network

An object containing methods related to the network protocol.

getEvents(chainId, contractAddress, eventName, filters?)

Returns an array of BlockchainEvent objects corresponding to the specified parameters.

  • chainId: A string representing the chain identifier.
  • contractAddress: A string representing the smart contract address.
  • eventName: A blockchainEventsName enum value representing the event name.
  • filters (optional): An object containing additional parameters to filter the events.
const events = await client.network.getEvents('polygon', '0x1234567890123456789012345678901234567890', 'Transfer');
countEvents(chainId, contractAddress, eventName, filters?)

Returns the number of events corresponding to the specified parameters.

  • chainId: A string representing the chain identifier.
  • contractAddress: A string representing the smart contract address.
  • eventName: A blockchainEventsName enum value representing the event name.
  • filters (optional): An object containing additional parameters to filter the events.
const events = await client.network.countEvents('polygon', '0x1234567890123456789012345678901234567890', 'Transfer');
getOwnedNfts(protocol, address)

Returns an array of smartAssetInfo objects representing the owned NFTs by the specified address on a specific network.

  • protocol: A Protocol object representing the protocol (mainnet, testnet, polygon, arialabs...).
  • address: A string representing the owner's address.
const events = await client.network.getOwnedNfts('polygon', '0x1234567890123456789012345678901234567890');
getNft(protocol, tokenId)

Returns a smartAssetInfo objects representing a specific NFT on a specific network.

  • protocol: A Protocol object representing the protocol (mainnet, testnet, polygon, arialabs...).
  • tokenId: A string representing the token id.
const events = await client.network.smartAssetInfo('polygon', '12');
getNftArianeeEvents(protocol, tokenId)

Returns an array of BlockchainEvent objects representing an event in the blockchain for a specific NFT.

  • protocol: A Protocol object representing the protocol (mainnet, testnet, polygon, arialabs...).
  • tokenId: A string representing the token id.
const events = await client.network.smartAssetInfo('polygon', '12');
getNftOwner(protocol, tokenId)

Returns a string representing the owner of the specified NFT

  • protocol: A Protocol object representing the protocol (mainnet, testnet, polygon, arialabs...).
  • tokenId: A string representing the token id.
const events = await client.network.getNftOwner('polygon', '12');
getIdentity(protocol, address)

Returns a brandIdentityInfo object representing the brand identity associated with the specified address.

  • protocol: A Protocol object representing the protocol (mainnet, testnet, polygon, arialabs...).
  • address: A string representing the brand identity address.
const events = await client.network.getIdentity('polygon', '0x1234567890123456789012345678901234567890');
1.84.0

10 months ago

1.83.0

10 months ago

1.82.0

10 months ago

1.80.0

10 months ago

1.81.0

10 months ago

1.81.1

10 months ago

1.79.0

11 months ago

1.78.0

12 months ago

1.56.0

1 year ago

1.63.0

1 year ago

1.67.0

1 year ago

1.48.0

1 year ago

1.70.0

1 year ago

1.51.0

1 year ago

1.74.0

12 months ago

1.55.0

1 year ago

1.57.0

1 year ago

1.60.0

1 year ago

1.64.0

1 year ago

1.68.0

1 year ago

1.68.1

1 year ago

1.68.2

1 year ago

1.68.3

1 year ago

1.68.4

1 year ago

1.49.0

1 year ago

1.71.0

1 year ago

1.71.1

1 year ago

1.52.0

1 year ago

1.77.1

12 months ago

1.58.0

1 year ago

1.61.0

1 year ago

1.65.0

1 year ago

1.69.0

1 year ago

1.72.0

1 year ago

1.72.1

1 year ago

1.53.0

1 year ago

1.76.0

12 months ago

1.59.0

1 year ago

1.62.0

1 year ago

1.66.0

1 year ago

1.73.0

12 months ago

1.50.0

1 year ago

1.77.0

12 months ago

1.54.0

1 year ago

1.47.0

1 year ago

1.46.0

1 year ago

1.45.0

1 year ago

1.44.0

1 year ago

1.43.0

1 year ago

1.42.0

1 year ago

1.41.0

1 year ago

1.39.0

1 year ago

1.40.0

1 year ago

1.38.0

1 year ago

1.37.0

1 year ago

1.35.0

1 year ago

1.36.0

1 year ago

1.34.0

1 year ago

1.33.0

1 year ago

1.32.0

2 years ago

1.31.0

2 years ago

1.30.1

2 years ago

1.30.0

2 years ago

1.29.2

2 years ago

1.29.1

2 years ago

1.29.0

2 years ago

1.27.0

2 years ago

1.26.0

2 years ago

1.28.0

2 years ago

1.25.0

2 years ago

1.24.0

2 years ago

1.23.0

2 years ago

1.22.0

2 years ago

1.21.0

2 years ago

1.20.0

2 years ago

1.19.0

2 years ago

1.15.0

2 years ago

1.14.0

2 years ago

1.13.0

2 years ago

1.12.0

2 years ago

1.18.0

2 years ago

1.17.0

2 years ago

1.16.0

2 years ago

1.11.1

2 years ago

1.11.0

2 years ago

1.10.0

2 years ago

1.9.0

2 years ago

1.8.0

2 years ago

1.6.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.20.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

0.17.0

2 years ago

0.28.0

2 years ago

0.27.0

2 years ago

0.26.0

2 years ago

0.25.0

2 years ago

0.24.0

2 years ago

0.23.0

2 years ago

0.22.0

2 years ago

0.13.0

2 years ago

0.15.0

2 years ago

0.10.0

2 years ago

0.11.0

2 years ago

0.9.0

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago