The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/rpc/hmyapi/backend.go

25 lines
471 B

package hmyapi
import (
"github.com/harmony-one/harmony/rpc"
)
const namespace = "hmy"
// GetAPIs returns all the APIs.
func GetAPIs(b *rpc.HmyAPIBackend) []rpc.API {
nonceLock := new(AddrLocker)
return []rpc.API{
{
Namespace: namespace,
Version: "1.0",
Service: NewPublicBlockChainAPI(b),
Public: true,
}, {
Namespace: namespace,
Version: "1.0",
Service: NewPublicTransactionPoolAPI(b, nonceLock),
Public: true,
},
}
}