semvec/pypi-packages huggingface dataset:
XDC3PYTHON 1.0.1
XDC RUST SDK with support for smart contracts, XRC20 & XRC721
License: MIT

# XDC3PYTHON

XDC3PYTHON SDK with support for smart contracts, XDC20 & XRC721. 


## Usage

**pip install XDC3PYTHON**

### This SDK supports following Read & Write operations:-

* xrc20 methods.
    * Read methods.
        * name(), balanceOf(account), totalSupply(), symbol(), decimals(), allowance(pwner, spender).

    * Write methods.
        * transferXDC(owner,receiver), approve(spender,amount), transferToken(receiver,amount), increaseAllowance(spender, addedValue), decreaseAllowance(spender, subtractedValue), transferFrom(sender, receiver, amount).

* xrc721 methods.
    * Read methods.
        * name(), symbol(), totalsupply(), balanceOf(ownerAddr), ownerOf(tokenId), tokenURI(tokenId), tokenByIndex(index), tokenOfOwnerByIndex(ownerAddress,index), supportInterface(interfaceId), getApproved(tokenId), isApprovedForAll(ownerAddress,spenderAddress).

    * Write methods.
        * setApprovalForAll(spenderAddress, booleanValue), approve(sepnderAddress , tokenId), transferFrom(recipient, tokenId), safeTransferFrom(spender, tokenId).




### Example for XRC20.

`
from XDC3PYTHON.xrc20 import XRC20

if __name__=="__main__":

    NETWORK_URL = "Your endpoint Url"

    obj = XRC20(NETWORK_URL)

    tokenAddr = input('Enter Token Address: ')
  
    tokenName = obj.name(tokenAddr)
    print(tokenName)  `

This example returns name of the specified address.

### Example for XRC721.

`
from XDC3PYTHON.xrc721 import XRC721

if __name__=="__main__":

    NETWORK_URL = "Your endpoint Url"

    obj = XRC721(NETWORK_URL)

    tokenAddr = input('Enter Token Address: ')
  
    tokenSymbol = obj.name(tokenAddr)
    print(tokenSymbol)  `

This example returns symbol of the specified address.

# Transports

**HTTP transport**

### Author
[XDCFoundation](https://github.com/XDCFoundation/XDC_Python_SDK_V1)