getContract

Returns the details of the contract at the specified address

Usage

tronWeb.trx.getContract();

Parameters

Parameter

Description

Data Type

address

Smart Contract Address

String

Returns
Object

Example

tronWeb.trx.getContract("TEEXEWrkMFKapSMJ6mErg39ELFKDqEs6w3").then(console.log)
>{ bytecode:
   '60806040526000805460ff1916905562989680600455601460055560068054600160c060020a031916905534801561003657600080fd5b5060008054610100330261010060a860020a03199182168117909116179055612361806100646000396000f3006080604052600436106101955763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166305514a3e811461019a57806305ca3841146101c45780630a857040146101f55780630bd7abde1461020f5780631c2e53ef1461022a5780631fa224bf1461025c57806330efb8d31461027d5780633158923d14610292578063334f5224146102b3578063402b9d6a146102e8578063558a72971461031657806367c18aa11461033c57806367d0661d146103605780636c188593146103755780636eba2b131461038d578063704b6c02146103f957806377bcfc671461041a5780637e091f3314610432578063837971c414610449578063897334dc1461045e578063a3082be91461047f578063a47d18821461048d578063a594ef5d146104a8578063b187bd26146104bd578063c0cfdd65146104d2578063e0dd956a1461069f578063e2a44aaa146106b7578063f32f5b84146106cc578063f85f3b88146106e1578063fa89401a146106f6578063fa968eea14610717578063fa96a9541461072c575b600080fd5b3480156101a657600080fd5b506101b2600435610741565b60408051918252519081900360200190f35b3480156101d057600080fd5b506101d9610755565b60408051600160a060020a039092168252519081900360200190f35b34801561020157600080fd5b5061020d600435610782565b005b34801561021b57600080fd5b5061020d6004356024356107fb565b34801561023657600080fd5b5061023f610865565b6040805167ffffffffffffffff9092168252519081900360200190f35b34801561026857600080fd5b5061020d600160a060020a0360043516610889565b34801561028957600080fd5b5061020d6108e9565b34801561029e57600080fd5b5061020d600160a060020a0360043516610911565b3480156102bf57600080fd5b506102d4600160a060020a0360043516610971565b604080519115158252519081900360200190f35b3480156102f457600080fd5b5061020d67ffffffffffffffff60043581169060243581169060443516610986565b34801561032257600080fd5b5061020d600160a060020a03600435166024351515610a52565b34801561034857600080fd5b5061020d600160a060020a0360043516602435610aae565b34801561036c57600080fd5b5061020d610d24565b34801561038157600080fd5b5061020d600435610d4f565b34801561039957600080fd5b506103ae600160a060020a0360043516610da3565b60408051600160a060020a03909716875267ffffffffffffffff95861660208801529385168685015291841660608601528316608085015290911660a0830152519081900360c00190f35b34801561040557600080fd5b5061020d600160a060020a0360043516610e1d565b34801561042657600080fd5b506101b2600435610e83565b34801561043e57600080fd5b5061020d6004610e90565b34801561045557600080fd5b5061023f610f08565b34801561046a57600080fd5b5061020d600160a060020a0360043516610f24565b61020d600435602435610f84565b61020d6004803590602480359160443591820191013561115a565b3480156104b457600080fd5b5061020d611366565b3480156104c957600080fd5b506102d46113bc565b3480156104de57600080fd5b506104f260048035602481019101356113c5565b6040518080602001806020018060200180602001806020018060200187810387528d818151815260200191508051906020019060200280838360005b8381101561054657818101518382015260200161052e565b5050505090500187810386528c818151815260200191508051906020019060200280838360005b8381101561058557818101518382015260200161056d565b5050505090500187810385528b818151815260200191508051906020019060200280838360005b838110156105c45781810151838201526020016105ac565b5050505090500187810384528a818151815260200191508051906020019060200280838360005b838110156106035781810151838201526020016105eb565b50505050905001878103835289818151815260200191508051906020019060200280838360005b8381101561064257818101518382015260200161062a565b50505050905001878103825288818151815260200191508051906020019060200280838360005b83811015610681578181015183820152602001610669565b505050509050019c5050505050505050505050505060405180910390f35b3480156106ab57600080fd5b5061020d600435611767565b3480156106c357600080fd5b506101d9611796565b3480156106d857600080fd5b506101b26117c3565b3480156106ed57600080fd5b5061023f6117c9565b34801561070257600080fd5b5061020d600160a060020a03600435166117d9565b34801561072357600080fd5b506101b26119ba565b34801561073857600080fd5b506101d96119c0565b6009816062811061074e57fe5b0154905081565b600080546101009004600160a060020a0316331461077257600080fd5b50600154600160a060020a031690565b6000546101009004600160a060020a0316331461079e57600080fd5b6000811180156107af575030318111155b15156107ba57600080fd5b60008054604051610100909104600160a060020a0316916108fc841502918491818181858888f193505050501580156107f7573d6000803e3d6000fd5b5050565b6000546101009004600160a060020a0316331461081757600080fd5b60018210158015610829575060608211155b151561083457600080fd5b60008111801561084657506103e88111155b151561085157600080fd5b80606b836062811061085f57fe5b01555050565b600654700100000000000000000000000000000000900467ffffffffffffffff1681565b6000546101009004600160a060020a031633146108a557600080fd5b600160a060020a03811615156108ba57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000546101009004600160a060020a0316331461090557600080fd5b6000805460ff19169055565b6000546101009004600160a060020a0316331461092d57600080fd5b600160a060020a038116151561094257600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60076020526000908152604090205460ff1681565b6000546101009004600160a060020a031633146109a257600080fd5b67ffffffffffffffff808416908316116109bb57600080fd5b61c35067ffffffffffffffff821611156109d457600080fd5b6006805467ffffffffffffffff191667ffffffffffffffff948516176fffffffffffffffff0000000000000000191668010000000000000000938516939093029290921777ffffffffffffffff0000000000000000000000000000000019167001000000000000000000000000000000009190931602919091179055565b6000546101009004600160a060020a03163314610a6e57600080fd5b600160a060020a0382161515610a8357600080fd5b600160a060020a03919091166000908152600860205260409020805460ff1916911515919091179055565b6001546000908190819081908190819081908190600160a060020a03163314610ad657600080fd5b600160a060020a038a16600090815260cd6020526040902054975060ff80891614610b0057600080fd5b600254604080517f30d593a2000000000000000000000000000000000000000000000000000000008152600160a060020a038d81166004830152915160649392909216916330d593a2916024808201926020929091908290030181600087803b158015610b6c57600080fd5b505af1158015610b80573d6000803e3d6000fd5b505050506040513d6020811015610b9657600080fd5b505160408051918252602082018c9052805191829003019020811515610bb857fe5b600160a060020a038c16600090815260cd6020526040902067ffffffffffffffff929091069182168a0160fe19019055965061010061ffff8916049550608067ffffffffffffffff87160494506201000065ffffffffffff891604935066010000000000008804925060808667ffffffffffffffff161015610c4c57505067ffffffffffffffff8085169086161084610c61565b5050607f841667ffffffffffffffff86168110905b8115610c7a57610c758a848684898c6119ed565b610d0e565b60008a600160a060020a03168567ffffffffffffffff167ff0f1e23ddce8a520eaa7502e02fa767cb24152e9a86a4bf02529637c4e57504b8460808b67ffffffffffffffff16811515610cc957fe5b6040805167ffffffffffffffff948516815292909104831660208301528181018a9052918d16606082015260006080820181905260a082015290519081900360c00190a45b610d188a84611d56565b50505050505050505050565b6000546101009004600160a060020a03163314610d4057600080fd5b6000805460ff19166001179055565b6000546101009004600160a060020a03163314610d6b57600080fd5b60018110158015610d7f5750620186a08111155b1515610d8a57600080fd5b610d9d81620f424063ffffffff611fb816565b60045550565b600160a060020a038116600090815260cd6020526040812054819081908190819081908180821115610e0d5750879650640100000000610100808304908104918204975063ffffffff82169650608060ff8281169182049750607f90921695509216925090610e12565b60ff92505b505091939550919395565b6000546101009004600160a060020a03163314610e3957600080fd5b600160a060020a0381161515610e4e57600080fd5b60008054600160a060020a039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b606b816062811061074e57fe5b6000805481906101009004600160a060020a03163314610eaf57600080fd5b5060015b60608111610f0357828160648110610ec757fe5b60200201359150600082118015610ee057506103e88211155b1515610eeb57600080fd5b81606b8260628110610ef957fe5b0155600101610eb3565b505050565b60065468010000000000000000900467ffffffffffffffff1681565b6000546101009004600160a060020a03163314610f4057600080fd5b600160a060020a0381161515610f5557600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008054819081908190819081908190819060ff1615610fa357600080fd5b33600090815260cd60205260408120549850881115610fcd5760ff610100890610610fcd57600080fd5b8815156110185760018a10158015610fe65750605f8a11155b1515610ff157600080fd5b60098a60628110610ffe57fe5b01549650606b8a6062811061100f57fe5b01549550611064565b88600114156101955760048a10158015611033575060628a11155b151561103e57600080fd5b600960638b90036062811061104f57fe5b01549650606b60638b90036062811061100f57fe5b349450600454851015801561107f5750660100000000000085105b151561108a57600080fd5b6110a087612710875b049063ffffffff611fb816565b93506127106110ba60055486611fb890919063ffffffff16565b8115156110c357fe5b6003549190049350612710906110e990600160a060020a0316318863ffffffff611fb816565b8115156110f257fe5b049150611105848463ffffffff611fee16565b90508181111561111457600080fd5b600354604051600160a060020a039091169086156108fc029087906000818181858888f1935050505015801561114e573d6000803e3d6000fd5b50610d18888b8b611ffd565b60008054819081908190819081908190819060ff161561117957600080fd5b33600090815260cd602052604081205498508811156111a35760ff6101008906106111a357600080fd5b8a15156111ee5760018c101580156111bc5750605f8c11155b15156111c757600080fd5b60098c606281106111d457fe5b01549650606b8c606281106111e557fe5b0154955061123a565b8a600114156101955760048c10158015611209575060628c11155b151561121457600080fd5b600960638d90036062811061122557fe5b01549650606b60638d9003606281106111e557fe5b34945060045485101580156112555750660100000000000085105b151561126057600080fd5b61126d8761271087611093565b935061271061128760055486611fb890919063ffffffff16565b81151561129057fe5b6003549190049350612710906112b690600160a060020a0316318863ffffffff611fb816565b8115156112bf57fe5b0491506112d2848463ffffffff611fee16565b9050818111156112e157600080fd5b600354604051600160a060020a039091169086156108fc029087906000818181858888f1935050505015801561131b573d6000803e3d6000fd5b50611358888d8d8d8d8080601f016020809104026020016040519081016040528093929190818152602001838380828437506120ad945050505050565b505050505050505050505050565b600080546101009004600160a060020a0316331461138357600080fd5b5060015b606081116113b95761271081620f07a88115156113a057fe5b0403600982606281106113af57fe5b0155600101611387565b50565b60005460ff1681565b6060808080808086600080808084116113dd57600080fd5b83604051908082528060200260200182016040528015611407578160200160208202803883390190505b50995083604051908082528060200260200182016040528015611434578160200160208202803883390190505b50985083604051908082528060200260200182016040528015611461578160200160208202803883390190505b5097508360405190808252806020026020018201604052801561148e578160200160208202803883390190505b509650836040519080825280602002602001820160405280156114bb578160200160208202803883390190505b509550836040519080825280602002602001820160405280156114e8578160200160208202803883390190505b509450600090505b838110156117595760cd60008d8d8481811061150857fe5b90506020020135600160a060020a0316600160a060020a0316600160a060020a031681526020019081526020016000205491506000821115611643576101008206858281518110151561155757fe5b67ffffffffffffffff9092166020928302909101909101526101008204915061010082069250608067ffffffffffffffff841606868281518110151561159957fe5b67ffffffffffffffff9283166020918202909201015260809084160487828151811015156115c357fe5b67ffffffffffffffff90921660209283029091019091015261010082049150640100000000820688828151811015156115f857fe5b67ffffffffffffffff9092166020928302909101909101526401000000008204898281518110151561162657fe5b67ffffffffffffffff909216602092830290910190910152611710565b60ff858281518110151561165357fe5b67ffffffffffffffff909216602092830290910190910152855160009087908390811061167c57fe5b67ffffffffffffffff90921660209283029091019091015286516000908890839081106116a557fe5b67ffffffffffffffff90921660209283029091019091015287516000908990839081106116ce57fe5b67ffffffffffffffff90921660209283029091019091015288516000908a90839081106116f757fe5b67ffffffffffffffff9092166020928302909101909101525b8b8b8281811061171c57fe5b90506020020135600160a060020a03168a8281518110151561173a57fe5b600160a060020a039092166020928302909101909101526001016114f0565b505050509295509295509295565b6000546101009004600160a060020a0316331461178357600080fd5b606481111561179157600080fd5b600555565b600080546101009004600160a060020a031633146117b357600080fd5b50600354600160a060020a031690565b60055481565b60065467ffffffffffffffff1681565b33600090815260086020526040812054819081908190819060ff168061180e57506000546101009004600160a060020a031633145b151561181957600080fd5b600160a060020a038616600090815260cd60205260408120549550851180156118465750610100850660ff145b151561185157600080fd5b505060035461010061ffff8516049250608067ffffffffffffffff84160491506201000065ffffffffffff851604906601000000000000850490600160a060020a0316318111156118a157600080fd5b600160a060020a03808716600081815260cd602090815260408083206099198b01905560035481517f4aa48f7a000000000000000000000000000000000000000000000000000000008152600481019590955260248501879052604485018790529051941693634aa48f7a93606480820194918390030190829087803b15801561192a57600080fd5b505af115801561193e573d6000803e3d6000fd5b505050506040513d602081101561195457600080fd5b505060408051607f8616815267ffffffffffffffff85811660208301528183018490529151600160a060020a038916928516917f4a0c0bed65112a44e25606f1786860f1cbf83f09506ea1ffdc133dc62a430542919081900360600190a3505050505050565b60045481565b600080546101009004600160a060020a031633146119dd57600080fd5b50600254600160a060020a031690565b6000808080611a31600967ffffffffffffffff881615611a105788606303611a12565b885b67ffffffffffffffff1660628110611a2657fe5b01546127108b611093565b9350611a43898563ffffffff611fee16565b600354604080517f4aa48f7a000000000000000000000000000000000000000000000000000000008152600160a060020a038e8116600483015260248201859052604482018e90529151939650911691634aa48f7a916064808201926020929091908290030181600087803b158015611abb57600080fd5b505af1158015611acf573d6000803e3d6000fd5b505050506040513d6020811015611ae557600080fd5b5050600254604080517f1d361504000000000000000000000000000000000000000000000000000000008152600160a060020a038d8116600483015291519190921691631d3615049160248083019260209291908290030181600087803b158015611b4f57600080fd5b505af1158015611b63573d6000803e3d6000fd5b505050506040513d6020811015611b7957600080fd5b50519150600160a060020a03821615611cd457612710611ba460055486611fb890919063ffffffff16565b811515611bad57fe5b600354604080517f4aa48f7a000000000000000000000000000000000000000000000000000000008152600160a060020a038781166004830152949093046024840181905260006044850181905291519095509390911692634aa48f7a926064808201936020939283900390910190829087803b158015611c2d57600080fd5b505af1158015611c41573d6000803e3d6000fd5b505050506040513d6020811015611c5757600080fd5b50506040805167ffffffffffffffff898116825288811660208301528183018c905287811660608301526080820186905260a082018490529151600160a060020a0380861693908e1692908c16917ff0f1e23ddce8a520eaa7502e02fa767cb24152e9a86a4bf02529637c4e57504b9181900360c00190a4610d18565b6040805167ffffffffffffffff898116825288811660208301528183018c9052878116606083015260808201869052600060a08301529151600160a060020a0380861693908e1692908c16917ff0f1e23ddce8a520eaa7502e02fa767cb24152e9a86a4bf02529637c4e57504b9181900360c00190a450505050505050505050565b600080600080600360009054906101000a9004600160a060020a0316600160a060020a03166350b5a1196040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b158015611dc857600080fd5b505af1158015611ddc573d6000803e3d6000fd5b505050506040513d6020811015611df257600080fd5b505193506000841115611fb057611e14601464e8d4a510006000198701611093565b610ba40385811515611e2257fe5b0492506000600660109054906101000a900467ffffffffffffffff1667ffffffffffffffff161115611ecf5760065442925067ffffffffffffffff90811690831610801590611e8d575060065467ffffffffffffffff68010000000000000000909104811690831611155b15611ecf5760065461271090611ec2908590700100000000000000000000000000000000900467ffffffffffffffff16611fb8565b811515611ecb57fe5b0492505b6006611ee284600463ffffffff611fb816565b811515611eeb57fe5b04905083611eff848363ffffffff611fee16565b1115611f2757611f126006600a86611093565b9250611f24848463ffffffff61217816565b90505b600354604080517f81ebe802000000000000000000000000000000000000000000000000000000008152600160a060020a0389811660048301526024820187905260448201859052915191909216916381ebe80291606480830192600092919082900301818387803b158015611f9c57600080fd5b505af1158015610d18573d6000803e3d6000fd5b505050505050565b600080831515611fcb5760009150611fe7565b50828202828482811515611fdb57fe5b0414611fe357fe5b8091505b5092915050565b600082820183811015611fe357fe5b3360008181526007602052604081205460ff16151561203a57600160a060020a0382166000908152600760205260409020805460ff191660011790555b50600163ffffffff6201000086041601640100000000811061205d5763ffffffff165b836101000283618000028262010000023466010000000000000201010160ff0160cd600084600160a060020a0316600160a060020a03168152602001908152602001600020819055505050505050565b33600081815260076020526040812054819060ff161515612103576000845111156120df576120dc838561218f565b91505b600160a060020a0383166000908152600760205260409020805460ff191660011790555b50600163ffffffff620100008804160164010000000081106121265763ffffffff165b856101000285618000028262010000023466010000000000000201010160ff0160cd600085600160a060020a0316600160a060020a031681526020019081526020016000208190555050505050505050565b60008282111561218457fe5b508082035b92915050565b6002546040517fb80e61f8000000000000000000000000000000000000000000000000000000008152602060048201818152845160248401528451600094600160a060020a03169363b80e61f8938793928392604401918501908083838b5b838110156122065781810151838201526020016121ee565b50505050905090810190601f1680156122335780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b15801561225257600080fd5b505af1158015612266573d6000803e3d6000fd5b505050506040513d602081101561227c57600080fd5b50519050600160a060020a03838116908216141561229957600080fd5b600160a060020a0381161561218957600254604080517fbd275d82000000000000000000000000000000000000000000000000000000008152600160a060020a03868116600483015284811660248301529151919092169163bd275d8291604480830192600092919082900301818387803b15801561231757600080fd5b505af115801561232b573d6000803e3d6000fd5b50505050929150505600a165627a7a7230582002903451feb225557a71b32b6863ac3f678b41f6556917a6c3f4ecd88f0dcd750029',
  name: 'TronBet',
  origin_address: '419a536539b2bbdbadb5d2d45afcc1979065b4370c',
  abi:
   { entrys:
      [ [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object],
        [Object] ] },
  contract_address: '412ec5f63da00583085d4c2c5e8ec3c8d17bde5e28' }