Documentation

TokenService extends ResourceService
in package

Table of Contents

$resource  : Resource
__construct()  : mixed
data()  : array<string|int, mixed>
getAllowance()  : string|null
getBalance()  : string
getContract()  : ERC20Contract|ContractService|EthereumService
getContractAddress()  : string|null
getEventsTopics()  : array<string|int, mixed>
getFunctionSelector()  : array<string|int, mixed>
getResource()  : resource
getTokenInfo()  : object
getTokenInfoJson()  : string
load()  : ServiceInterface
setContractAddress()  : TokenService
setResource()  : self
update()  : ServiceInterface

Properties

Methods

data()

public data() : array<string|int, mixed>
Return values
array<string|int, mixed>

getAllowance()

public getAllowance(string $owner, string $spender) : string|null
Parameters
$owner : string
$spender : string
Return values
string|null

getBalance()

public getBalance(string $address) : string
Parameters
$address : string
Return values
string

getContractAddress()

public getContractAddress() : string|null
Return values
string|null

getEventsTopics()

public getEventsTopics() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFunctionSelector()

public getFunctionSelector(string $name) : array<string|int, mixed>
Parameters
$name : string
Return values
array<string|int, mixed>

getResource()

public getResource() : resource
Return values
resource

getTokenInfo()

public getTokenInfo() : object
Return values
object

getTokenInfoJson()

public getTokenInfoJson() : string
Tags
throws
JsonException
Return values
string

setResource()

public setResource(resource $resource) : self
Parameters
$resource : resource
Return values
self

Search results