-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
const resolveAddress = async (address) => { // The Cadence code to resolve address to an Address we can get from "name.cdc" script: // https://github.com/findonflow/find/blob/main/scripts/name.cdc // .find contract deployed on Flow Mainnet at "0x097bafa4e0b48eef" - we will use that address in import statement const cadence = ` import FIND from 0x097bafa4e0b48eef pub fun main(address: Address) : String?{ return FIND.reverseLookup(address) // notice the new function } `; const args = (arg, t) => [arg(address, t.Address)]; // "query" will pass Cadence code to access node for execution and return us a result: // read more about "query" method on Flow Docs Site: // https://docs.onflow.org/fcl/reference/api/#query const name = await query({ cadence, args }); console.log( `${address} address is aliased to %c${name}`, "color: #36ad68; font-weight: bold" ); };
Related posts
-
Build a Digital Collectibles Portal Using Flow and Cadence (Part 1)
-
Build a Digital Collectibles Portal Using Flow and Cadence (Part 1)
-
Flow & Cadence Best Practices, Patterns, and Anti-Patterns
-
Build on Flow | Learn FCL - 16. How to Send FLOW Tokens to Another Account
-
The State of Interactive NFTs on Flow