Git Product home page Git Product logo

stamp's Introduction

Stamp codecov

Resolve and resize web3 avatar and token images.

Usage

Simply use a valid Stamp URL to display an avatar:

https://cdn.stamp.fyi/avatar/0xeF8305E140ac520225DAf050e2f71d5fBcC543e7

<img src="https://cdn.stamp.fyi/avatar/0xeF8305E140ac520225DAf050e2f71d5fBcC543e7" />

URL structure

cdn.stamp.fyi/{type}/{identifier}?{params}
cdn.stamp.fyi/avatar/0xeF8305E140ac520225DAf050e2f71d5fBcC543e7?s=140

Type

The type is either avatar or token.

Examples

cdn.stamp.fyi/avatar/0xeF8305E140ac520225DAf050e2f71d5fBcC543e7
cdn.stamp.fyi/token/0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e

Identifier

The identifier can be an address (case insensitive), ENS name, CAIP-10, EIP-3770, DID or Starknet domain.

Examples

cdn.stamp.fyi/avatar/0xeF8305E140ac520225DAf050e2f71d5fBcC543e7
cdn.stamp.fyi/avatar/fabien.eth
cdn.stamp.fyi/token/eth:0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e
cdn.stamp.fyi/token/eip155:1:0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e cdn.stamp.fyi/avatar/checkpoint.stark cdn.stamp.fyi/avatar/0x07FF6B17f07c4d83236E3Fc5f94259A19D1Ed41bBCf1822397EA17882E9b038d

Params

With the params you can define the size of the image returned. You can also refresh the image cache using cb param.

Examples

cdn.stamp.fyi/avatar/0xeF8305E140ac520225DAf050e2f71d5fBcC543e7?s=160 cdn.stamp.fyi/avatar/0xeF8305E140ac520225DAf050e2f71d5fBcC543e7?w=160&h=240 cdn.stamp.fyi/avatar/0xeF8305E140ac520225DAf050e2f71d5fBcC543e7?cb=1

Resolvers

Integrations

License

MIT.

stamp's People

Contributors

bonustrack avatar wa0x6e avatar dependabot[bot] avatar sekhmet avatar midgerate avatar flacojones avatar samuellhuber avatar chaituvr avatar bigint avatar sasicodes avatar florindumitru avatar j0hnfl0w avatar songkeys avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.