mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-04 00:12:29 +00:00
* add first iteration of content for Terminal Pro * Update index.md * Update dashboards.md * Update folders.md * Update grouping.md * Update report.md * Update templates.md * Update quick-start.md * Update index.md * Update index.md * Update home.md * Update news.md * Update index.md * Update index.md * Update index.md * Update data-provider.md * Update chat-with-widget.md * Update data-manipulation.md * Update forecasting.md * fix: images self closing tags * fix: only pro visitors can see pro * inter font * improve SEO content and restructuring * add new package for toggle on tutorials * move folder around * improve main page of each prod * small updates and improvements * fix logo above * small improvement in headtitle for portfolio funcs * fix typos from OpenAI's GPT-4 * fix _category_ json * remove generic SEO words * add script that generates SEO for documentation * add missing file * remove sdk warning message * fix links for andrew --------- Co-authored-by: jose-donato <zmcdonato@gmail.com> Co-authored-by: jose-donato <43375532+jose-donato@users.noreply.github.com> Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
85 lines
10 KiB
Markdown
Vendored
85 lines
10 KiB
Markdown
Vendored
---
|
|
title: contracts
|
|
description: This page details how to effectively fetch all contract addresses for
|
|
a specific blockchain platform with customizable parameters for limitations and
|
|
sorting. Various platforms such as Ethereum and Bitcoin are discussed, along with
|
|
illustration on detailed sets of commands.
|
|
keywords:
|
|
- contracts
|
|
- blockchain platform
|
|
- smart contracts
|
|
- ethereum
|
|
- bitcoin
|
|
- parameters
|
|
- sort data
|
|
- display
|
|
- crypto
|
|
---
|
|
|
|
import HeadTitle from '@site/src/components/General/HeadTitle.tsx';
|
|
|
|
<HeadTitle title="crypto/ov/contracts - Reference | OpenBB Terminal Docs" />
|
|
|
|
Gets all contract addresses for given platform. Provide platform id with -p/--platform parameter You can display only N number of smart contracts with --limit parameter. You can sort data by id, type, active, balance --sortby parameter and also with --reverse flag to sort descending. Displays: id, type, active, balance
|
|
|
|
### Usage
|
|
|
|
```python
|
|
contracts [-p {btc-bitcoin,eos-eos,eth-ethereum,xrp-xrp,bch-bitcoin-cash,xem-nem,neo-neo,xlm-stellar,etc-ethereum-classic,qtum-qtum,zec-zcash,vet-vechain,bts-bitshares,waves-waves,nxt-nxt,act-achain,ubq-ubiq,xcp-counterparty,ppc-peercoin,etp-metaverse-etp,signa-signa,omni-omni,trx-tron,bnb-binance-coin,ardr-ardor,ht-huobi-token,wan-wanchain,ftm-fantom,matic-polygon,afcash-africunia-bank,avax-avalanche,sol-solana,blvr-believer,cake-pancakeswap,bcna-bitcanna831,fsxu-flashx-ultra,chik-chickenkebab-finance,jgn-juggernaut7492,crx-cryptex,whirl-whirl-finance,etl-etherlite,eubi-eubi-token,swam-swapmatic-token,shells-shells,levelg-levelg,lyr-lyra,ants-fireants,berry-berry,drc-deracoin,sxcc-southxchange-coin,vega-vega-coin,xgk-goldkash,ptd-peseta-digital,mmt-moments-market,gems-algogems,kilt-kilt-protocol,harl-harmonylauncher,alph-alephium,ride-holoride,fcon-spacefalcon,love-diamond-love,kint-kintsugi,astr-astar,chum-chum-coin,polyx-polymesh,kfl-kaafila,evmos-evmos,wtip-worktips9618,xeta-xana,arn-arenum,fayre-fayre,mart-artmeta,azit-azit,fcd-freshcut-diamond,pbt-property-blockchain-trade,fww-farmers-world-wood,cand-canary-dollar,srs-sirius-finance,xden-xiden,arz-arize,hash-provenance-blockchain,joy-drawshop-kingdom-reverse-joystick,orbc-orbis,b3x-bnext-b3x,xmp-maptcoin,gomt-gomeat,pro-proton-coin,slrr-solarr,xgbl-xungible,utg-ultronglow,oxp-onxrp,algx-algodex,bridge-octus-bridge,cvshot-cvshots,xspectar-xspectar,blkz-blocksworkz,sva-solvia,bdlt-bdlt,ogy-origyn-foundation,digau-dignity-gold,trx3l-trx3l,eth3s-eth3s,intr-interlay,crom-crome,tutl-tutela,cc-cloudcoin,ztg-zeitgeist,film-filmcredits,znt-zenith-finance,bnd-bened,mddn-modden234234234,wei-wei,dcrn-decred-next,omc-omchain,turn-big-turn,cmp-caduceus,pmg-pmg-coin,xx-xx-network,neer-metaversenetwork-pioneer,tao-fusotao,cic-crazy-internet-coin,bsx-basilisk,cuc-cuprum-coin,ulx-ultron,fury-fanfury,vxxl-vxxl,spex-stepex,log-logos,metal-metal-blockchain,nai-natiol,ling-lingose}] [-l LIMIT] [-s {id,type,active}] [-r]
|
|
```
|
|
|
|
---
|
|
|
|
## Parameters
|
|
|
|
| Name | Description | Default | Optional | Choices |
|
|
| ---- | ----------- | ------- | -------- | ------- |
|
|
| platform | Blockchain platform like eth-ethereum | eth-ethereum | True | btc-bitcoin, eos-eos, eth-ethereum, xrp-xrp, bch-bitcoin-cash, xem-nem, neo-neo, xlm-stellar, etc-ethereum-classic, qtum-qtum, zec-zcash, vet-vechain, bts-bitshares, waves-waves, nxt-nxt, act-achain, ubq-ubiq, xcp-counterparty, ppc-peercoin, etp-metaverse-etp, signa-signa, omni-omni, trx-tron, bnb-binance-coin, ardr-ardor, ht-huobi-token, wan-wanchain, ftm-fantom, matic-polygon, afcash-africunia-bank, avax-avalanche, sol-solana, blvr-believer, cake-pancakeswap, bcna-bitcanna831, fsxu-flashx-ultra, chik-chickenkebab-finance, jgn-juggernaut7492, crx-cryptex, whirl-whirl-finance, etl-etherlite, eubi-eubi-token, swam-swapmatic-token, shells-shells, levelg-levelg, lyr-lyra, ants-fireants, berry-berry, drc-deracoin, sxcc-southxchange-coin, vega-vega-coin, xgk-goldkash, ptd-peseta-digital, mmt-moments-market, gems-algogems, kilt-kilt-protocol, harl-harmonylauncher, alph-alephium, ride-holoride, fcon-spacefalcon, love-diamond-love, kint-kintsugi, astr-astar, chum-chum-coin, polyx-polymesh, kfl-kaafila, evmos-evmos, wtip-worktips9618, xeta-xana, arn-arenum, fayre-fayre, mart-artmeta, azit-azit, fcd-freshcut-diamond, pbt-property-blockchain-trade, fww-farmers-world-wood, cand-canary-dollar, srs-sirius-finance, xden-xiden, arz-arize, hash-provenance-blockchain, joy-drawshop-kingdom-reverse-joystick, orbc-orbis, b3x-bnext-b3x, xmp-maptcoin, gomt-gomeat, pro-proton-coin, slrr-solarr, xgbl-xungible, utg-ultronglow, oxp-onxrp, algx-algodex, bridge-octus-bridge, cvshot-cvshots, xspectar-xspectar, blkz-blocksworkz, sva-solvia, bdlt-bdlt, ogy-origyn-foundation, digau-dignity-gold, trx3l-trx3l, eth3s-eth3s, intr-interlay, crom-crome, tutl-tutela, cc-cloudcoin, ztg-zeitgeist, film-filmcredits, znt-zenith-finance, bnd-bened, mddn-modden234234234, wei-wei, dcrn-decred-next, omc-omchain, turn-big-turn, cmp-caduceus, pmg-pmg-coin, xx-xx-network, neer-metaversenetwork-pioneer, tao-fusotao, cic-crazy-internet-coin, bsx-basilisk, cuc-cuprum-coin, ulx-ultron, fury-fanfury, vxxl-vxxl, spex-stepex, log-logos, metal-metal-blockchain, nai-natiol, ling-lingose |
|
|
| limit | display N number records | 15 | True | None |
|
|
| sortby | Sort by given column | id | True | id, type, active |
|
|
| reverse | Data is sorted in ascending order by default. Reverse flag will sort it in an descending way. Only works when raw data is displayed. | False | True | None |
|
|
|
|
|
|
---
|
|
|
|
## Examples
|
|
|
|
```python
|
|
2022 Feb 15, 08:16 (🦋) /crypto/ov/ $ contracts
|
|
Contract Addresses
|
|
┌────────────────────────────────────────────────────┬───────┬────────┐
|
|
│ id │ type │ active │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ - │ ERC20 │ True │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ -dogeinu │ ERC20 │ True │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ -exotix │ ERC20 │ True │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ -onlychads │ ERC20 │ True │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ -pcore │ ERC20 │ True │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ -the-ether-collection │ ERC20 │ True │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ 0175-geely-automobile │ ERC20 │ True │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ 0241-alibaba-health-information-technology-limited │ ERC20 │ True │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ 0347-angang-steel │ ERC20 │ True │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ 0358-jiangxi-copper │ ERC20 │ True │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ 0522-asm-pacific-technology-limited │ ERC20 │ True │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ 0728-china-telecom │ ERC20 │ True │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ 0753-air-china │ ERC20 │ True │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ 0857-petrochina │ ERC20 │ True │
|
|
├────────────────────────────────────────────────────┼───────┼────────┤
|
|
│ 0916-china-longyuan-power │ ERC20 │ True │
|
|
└────────────────────────────────────────────────────┴───────┴────────┘
|
|
```
|
|
---
|